#18 Python Tutorial for Beginners | User input in Python | Command Line Input



Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

Github :-

In this video we will see:
– How to get user input
– print function
– input function
– printing input message
– Type of input data
– When to use index value
– eval function
– Passing values from command line
– Argument line input

Editing Monitors :

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20

Nguồn: https://benjaminjcohen.com/

Xem thêm bài viết khác: https://benjaminjcohen.com/cong-nghe/

50 Comments

  1. x=int (input('enter number'))

    y=int (x**3)

    print (y)
    its working 2

  2. Sir in this video character part which u implement in your code i.e.
    Ch = input ('enter a char ')
    Print (ch)
    This part and also evaluation part is giving errors
    Name error : name 'l' is not defined

  3. Hello telusko. I installed both pycharm communtiy and professional. The latter requires some things to get a license, and the former does not have “Run” as an option. Must i get the professional Pycharm to be able to run my codes?

  4. instead of converting the string type into integer you can directly take the input from the user in int type
    x = int(input("Enter the 1st number")
    y = int(input("Enter the 2nd number")
    z = x + y
    print(z)
    or return(z)

  5. How to take multiple lists as a input using argv

  6. x= int(input('enter a number to find cube '))

    print(x*x*x)

  7. I can't really run it on sublime, but when i ran it on VScode..it worked fine. Please help

  8. You are awesome.. Itna to mene 4 saal me nhi padha..
    Jitna 2 din me padh liya😂

  9. x=int(input("enter a number"))

    print("cube of the number is:", (x**3))

  10. For finding square root we have sqrt and what about cube root 🤔🤔?

  11. congrates sir, you get 1 million subscriber

  12. Thank you thats really helped me alot

  13. I have done it using pow ..

    import math
    x= int(input("enter a number"))
    print(math.pow(x,3))

  14. Is IDLE is like PYCHARM
    OR
    Can we use IDLE instead of PYCHARM

  15. Hello Navin sir

    It is not working in IDE

  16. Amazing. I normally dont add comments on youtube videos. But the way you explain and teach is amazing. Thank you for all the learning you are imparting. Please keep up the good work. This channel for python is really helpful.

  17. But how can we convert a string into an algebric expression. Please tell.
    For example
    X=1
    Y=x**2
    Print(Y)
    Now here i had x square but i want an expression from user pls help

  18. in last example, using import sys, mine its showing error : list index out of range. Plz help

  19. PyCharm Code-
    x = int(input('enter a number'))

    a=pow(x, 3)

    print(a)
    Command Line Code:
    from math import pow

    x=int(input('enter a number'))

    a=pow(x,3)

    print(a)

  20. how do we get DATE as an INPUT from the USER ???????

  21. Sir why we use "dot " . And braket () in write a code

  22. x = int(input('enter value'))**3

    print(x)

  23. import sys
    x = int(sys.argv[1])**3
    print(x)

  24. AT 4:30 intstead of doing
    x = input("print a number")

    a = int(x)
    DO
    x = input("print a number")

    x = int(x)
    It also works – so no need to change variables

  25. python uses a interpreter instead of compiler because it shows the error in any line after it has interpreted the above lines …….right?

  26. Everyone here are nerds…..
    SO am I…..

  27. x = int(input('enter a number'))
    print(x**3)

  28. Answer of the quiz

    import math as m

    x=int(input("Enter the number to find its cube: "))
    # It will take input from user in command prompt
    z=int(m.pow(x,3))
    # calculate cube of that number
    print(z)

  29. import sys
    x = int(sys.argv[1])
    y = int(sys.argv[2])
    z = x + y
    print(z)

    for me it doesn't working, says list index out of the range for x=int(sys.argv…

  30. x=input("Enter the number")
    T=eval(x**3)
    Print(T)

  31. When i tried to print the character, there was a NameError saying name 'that character' is nor defined…. what to do?

  32. Awesome you explain very best

  33. You are the best teacher sir….
    Thanks a lot

  34. X=int(input('' enter some no ''))
    Cube=X**3
    Print(cube)

  35. print("mmmUUuUUmmmMMAaaaaAahhHH")

  36. X=int(input("Enter a value"))
    Result= X**3
    print(result)

  37. Hey Navin, thank you so much for the sessions !!!
    I do have a doubt. Can't we use argv function in PyCharm IDE ?

  38. sys.argv is not working in Google colab getting error

  39. sir my command line is not starting

  40. Yes boss 👍 we learn from mistake 👍

  41. im actually getting an error…can anyone plzz slow it

    from sys import argv
    x=int(argv[1])
    print(x**3)
    index error????

  42. Best channel for learning programming.😊

  43. x = int(input("Enter a number"))

    y = x ** 3

    print('The cube of the number is :', y)

  44. in Pycharm without using the "input function" i got the answer as 14.
    The only issue was i had to type the values in the "run" which is bottom of screen and there was no direct answer in the "run". which i had expected as we get in the Python IDLE. So any one can explain it to me.

  45. I'm human, its it cool to keep watching?

  46. Cube of a number

    from math import pow
    x=int(input("enter a number "))
    z=pow(x,3)
    print(z)

  47. Great job. I need to know if I need to change the path of myproject to a different folder, how to go about it?

Leave a Reply

Your email address will not be published. Required fields are marked *