Basic User Input

In Python 3 you can perform user input with the input() functions.

If you want the user of your program to input a string or variable you can do it like it’s shown in the next picture:

If you want the input to be a specific type, for example a float, you can use a convert functions.

Hinterlasse einen Kommentar

Erstelle eine Website wie diese mit WordPress.com
Jetzt starten