Answers for "ask function in python"

10

python how to use input

#basic user handling for begginers

x = input("your question here") # when someone types something here that answer will be saved and be used for later

# for example 
print(x)
Posted by: Guest on March-25-2020
2

python input variable

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

a = input("How old are you") # the user will be prompted to answer the question.

#The answer is stocked into a (which is here a string and not an int !).
Posted by: Guest on June-15-2020
2

how to add a user input in python

#This will allow the user to type in their name.
name = input("What is your name?")
#or
print("What is your name?")
NAME = input()
Posted by: Guest on May-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language