04Python Programming
Input
Easy10MIN
What is input?
Programs typically receive input from outside the program. Otherwise, the program would always follow exactly the same path.
Input can come from, for example:
- From the terminal (asks the user for something).
- As a command line parameter (run the program like** python3 app.py dippadappadu**u, where dippadappaduu would be the first command line parameter).
- From file on disk
- From the online service
- From an HTTP request, if it is a web application
- ...and from anywhere else.
1 / 5
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.