Answers for "taking number input in python"

1

user input of int type in python

#python program 
#taking int input from user
#printing them

#num1 from user
num1 = int(input("Enter a number of type int"))
print(num1)
Posted by: Guest on May-14-2020
3

how to accept input from the user in python

# if you want to ask the user to input anything, use the keyword "input"

# example

a = input("What is your name") # the user will be prompted to answer the question 

print(a) # this allows the user to actaully see the question or anything
Posted by: Guest on June-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language