Answers for "reading the input in python"

1

python getting input from

# Python 3

txt = input("Type something to test this out: ")

# Note that in version 3, the print() function
# requires the use of parenthesis.
print("Is this what you just said? ", txt)
Posted by: Guest on April-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language