let’s go deeper into Python!! // Python RIGHT NOW!! // EP 2
About this video
Episode 2 of the creator’s free Python course teaches variables and user input by building a robot barista for a fictional coffee shop. Starting from episode 1’s print function, strings and comments, he introduces the input() function, which prompts the user and always returns what they type as a string. Simply printing that input back is shown as useless on its own, so he introduces variables as named storage for reuse: assigning a value with =, printing a variable without quotes, and reassigning the same variable to a new value. He then stores the customer’s answer as name = input(‘What is your name?’) and personalizes a greeting by concatenating strings and variables with the + operator, paying attention to spaces and using a newline for cleaner prompts. The project is extended with a menu variable (listing items such as black coffee, espresso, latte and cappuccino) and an order variable, so the program asks for a name, shows the menu, takes an order, and replies that the named customer’s drink will be ready shortly. A free browser-based lab is offered for following along.
Key takeaways
- input() pauses the program, prompts the user, and returns their answer as a string
- A variable stores data for reuse and is created by assignment, e.g. name = a string value; printing the variable name without quotes prints its value
- Variables can vary: reassigning the same name replaces the old value with the new one
- Store user input directly in a variable, e.g. name = input(…), so it can be used later in the script
- Build personalized output by concatenating strings and variables with +, adding spaces deliberately and using a newline character to tidy prompts
Episode details: published September 21, 2021 · 17:03 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.
← Previous: i hate talking on the phone….. · Next: this device is HACKING my network!! (I’m letting it happen) →
All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube





