Uploaded March 2023 | Updated November 2026, 1 day ago
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn Python user input & control flow in this Python tutorial. You will learn how to receive user input and apply control flow to a simple game that will determine who wins and what is output.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack dev with Zero To Mastery Courses:
- The Complete Python Developer: bit.ly/CompPythonDev
- Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
π Source Code: github.com/gitdagray/python-course
π Playlist for this Python Course: bit.ly/dg-beginners-python
Python User Input & Control Flow π
(00:00) Intro
(00:05) Welcome
(00:18) Create a new file
(00:33) Basic User Input
(02:46) Basic Control Flow
(06:19) Exiting the program
(07:01) User Input Data Type
(08:17) Random Computer Choice
(09:23) Output the choices
(10:53) Game Winner Control Flow
(13:55) Test the Game
(14:26) Improving the Game
(15:44) Introducing Enums
(20:02) Improve the Game with Enums
Corrections:
(5:53) The pipe symbol is a bitwise OR.. but not what we needed here. We just need the word "or". I have updated the source code for the lesson with this correction. π
π Tutorial References:
π Python Official Site: python.org
πVisual Studio Code Official Site: code.visualstudio.com
Was this Python User Input and Control Flow tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
#python #user #input
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn Python user input & control flow in this Python tutorial. You will learn how to receive user input and apply control flow to a simple game that will determine who wins and what is output.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack dev with Zero To Mastery Courses:
- The Complete Python Developer: bit.ly/CompPythonDev
- Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
π Source Code: github.com/gitdagray/python-course
π Playlist for this Python Course: bit.ly/dg-beginners-python
Python User Input & Control Flow π
(00:00) Intro
(00:05) Welcome
(00:18) Create a new file
(00:33) Basic User Input
(02:46) Basic Control Flow
(06:19) Exiting the program
(07:01) User Input Data Type
(08:17) Random Computer Choice
(09:23) Output the choices
(10:53) Game Winner Control Flow
(13:55) Test the Game
(14:26) Improving the Game
(15:44) Introducing Enums
(20:02) Improve the Game with Enums
Corrections:
(5:53) The pipe symbol is a bitwise OR.. but not what we needed here. We just need the word "or". I have updated the source code for the lesson with this correction. π
π Tutorial References:
π Python Official Site: python.org
πVisual Studio Code Official Site: code.visualstudio.com
Was this Python User Input and Control Flow tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
#python #user #input










