Answers for "how to put in default inputs for input filds in python"

2

python default input

# Python 3:
age = input('Enter your age: ') or 18

# Older versions:
age = int(raw_input('Enter your age: ') or 18)
Posted by: Guest on June-17-2020

Code answers related to "how to put in default inputs for input filds in python"

Python Answers by Framework

Browse Popular Code Answers by Language