Answers for "how to use the item from input() in python"

1

how to use input in python

#The input command will popup/print the text placed inside the brackets.
#After the text you can type anything and press enter.
#Then the stuff written in the ansfer field will be saved as the function value.

x = input("write anything after this: ")
print(x)

#This code will first print the stuff written in input (write anything after this:).
#Then it will store the text as the x value.
#Then it will print it.
Posted by: Guest on May-07-2021
0

Getting Input in Python

print("What is your name?")
name = input()
print(name)  # This will print out whatever the user typed
Posted by: Guest on October-17-2021

Code answers related to "how to use the item from input() in python"

Python Answers by Framework

Browse Popular Code Answers by Language