Answers for "# Take user input in python"

2

# Take user input in python

# Take user input in python
age = int(input("Type the age: "))
if age <= 18:
    print("You are too young to enter here")
Posted by: Guest on February-25-2022
0

get input from user in python

string = input("Enter a string: ")
number = int(input("Enter a number: "))
Posted by: Guest on August-25-2021
0

user input python

age = input('what is your age?: ')
print("You are "+age + " years old")

ans : what is your age?: 23
You are 23 years old

#input method in python.A selected question would prompt and user should ans that.
#after that programme will show age with a text message.
Posted by: Guest on February-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language