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

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

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

FavoriteLoadingAdd to favorites

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

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

source

By |2019-08-07T21:51:17+00:00August 7th, 2019|Python Video Tutorials|26 Comments

26 Comments

  1. Spurthi Deshpande August 7, 2019 at 9:51 pm - Reply

    Sir why does indentation matters so much in python????

  2. Erratic Savage August 7, 2019 at 9:51 pm - Reply

    num = int(input("Enter a number to get its cube"))

    x = num*num*num

    print(x)

  3. Pavan Mudhole August 7, 2019 at 9:51 pm - Reply

    from sys import argv

    x=int(argv[1])

    y=x**3

    print(y)

  4. Prasanna Pattela August 7, 2019 at 9:51 pm - Reply

    Sir have a question about how to print the input data and result in one print function?
    my code is
    from math import pow
    x=int(input ("Enter the number to find cube: ")
    y=pow(x,3)
    print("The cube of " x "is" y) //this line say the syntaxerror

    print('The cube of')
    print(x)
    print("is")
    print(y)

    output :
    Enter the number to find cube: 3
    The cube of
    3
    is
    27.0

    But I need an output like
    Enter the number to find cube : 3
    The cube of 3 is 27.0

    can any one help me to get my imaginary output please

  5. KE XU August 7, 2019 at 9:51 pm - Reply

    amazing video!

  6. varun ghildiyal August 7, 2019 at 9:51 pm - Reply

    what is data type for ip address

  7. Oleg Shalumov August 7, 2019 at 9:51 pm - Reply

    This is a great tutorial!!!! Thank you to the teacher!
    My version of the Homework:
    import sys

    import math

    if len(sys.argv) > 2:

    print("Too many arguments entered on command line")

    if len(sys.argv) == 2:

    a = int(sys.argv[1])

    print("The cube of", a, "is:", math.pow(a, 3))

    else:

    a = int(input("Enter a number: "))

    print("The cube of", a, "is:", a**3)

  8. Ajay Thodupunoori August 7, 2019 at 9:51 pm - Reply

    # A code to find a Cube of number

    from math import pow

    x=int(input('enter 1st num'))

    y= pow(x,3)

    print(y)

  9. Rajput Kailash August 7, 2019 at 9:51 pm - Reply

    Exercise;

    from math import pow
    A=int(input('enter a number to get the cube of number'))
    Result=pow(A, 3)
    print(Result)

  10. Suvarna Malepati August 7, 2019 at 9:51 pm - Reply

    Sir…Is it necessary to use command line always in Every program??

  11. Sakhra Fadheelah August 7, 2019 at 9:51 pm - Reply

    How to solve this question?
    Write a code to input:-
    Enter your dob
    Month? Nov
    Date? 13
    Year? 1987
    And then print the following on screen.

  12. Vedanti Hasabe August 7, 2019 at 9:51 pm - Reply

    You are great man !! my every problem has a solution in your vdo..the way you teach is different. Love that👍

  13. abhishek chauhan August 7, 2019 at 9:51 pm - Reply

    x=int(input("enter the numbern"))
    y=x**3
    y

  14. Riyaz mhd August 7, 2019 at 9:51 pm - Reply

    In idle,
    from math import pow
    x=int(input("num:"))
    print(pow(x, 3))
    In cmd,
    from sys import argv
    x=int(argv[1])
    print(pow(x, 3))
    Here import math is not necessary so i skip that step

  15. Sunil Fam August 7, 2019 at 9:51 pm - Reply

    Will eval command can evaluate any mathematical fxn other then addition and subtraction

  16. Magesh G August 7, 2019 at 9:51 pm - Reply

    import math
    x=print(math.pow(4,3))
    print(x)

  17. Apoorv Agrawal August 7, 2019 at 9:51 pm - Reply

    Correct the clip, there is a mistake in argv* introduction!!

  18. Chowta Sairam August 7, 2019 at 9:51 pm - Reply

    sir for char data type it should take only one letter,but at the time 8:13 of this u have taken an expression like 2+6-1 ,but it is giving the output has 2 y?

  19. Ramkumar G August 7, 2019 at 9:51 pm - Reply

    Thank you for saving my Day

  20. Anurag Verma August 7, 2019 at 9:51 pm - Reply

    Make videos in hindi

  21. Susmitha Gorajana August 7, 2019 at 9:51 pm - Reply

    why don't we use int in eval function like how the console will know that we r giving only integer values

  22. Arsh Raza August 7, 2019 at 9:51 pm - Reply

    How can we make string statements with else and if

  23. raul ferreira August 7, 2019 at 9:51 pm - Reply

    Ok ok I don't speak English very well, but I understood more you video than other videos Spanish🙆‍♂️ thank's

  24. kar theek August 7, 2019 at 9:51 pm - Reply

    import sys

    b = int( input(sys.argv[0]))

    a = b**3

    print (a)

  25. Madhusudhan Reddy August 7, 2019 at 9:51 pm - Reply

    at 4:26 if this this not work i'll stop this video…. don't do that we're depending on your videos……if this tutorial is not understanding …keep watching…
    :::))))

  26. Kunal Soni August 7, 2019 at 9:51 pm - Reply

    sir your explanations are awesome for learning python

Leave A Comment

*