Python Tutorial for Absolute Beginners #7 - The Use of Iteration

preview_player
Показать описание
In this lesson you learn about the use of repeat or iteration in programming. This is done using Loops, including For Loops and While Loops. The lesson uses various practical examples of for and while loops and how they can be used for password programs and menu systems.

This is the seventh lesson in a series teaching Python Programming. It really starts at the very beginning. It's designed to be used by children and adults with no experience of programming.
Learn Python programming with this Python tutorial for beginners!

Tips:
2. If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
3. Check the outline in the comment section below if you want to skip around.
5. Have fun! If anything is unclear, please let me know in a comment.

Outline (check the comment section for a clickable version):

There are 11 video tutorials including:
1. An introduction to programming with Python
2. The use of Variables
3. The use of Data Types
4. The use of Text Manipulation
5. The use of Relational and Boolean Operators
6. The use of Sequence and Selection
7. The use of Iteration
8. The use of Lists (Arrays)
9. The use of 2D Lists (Arrays)
10. File Handling Operations
11. The use of Functions and Procedures
Рекомендации по теме
Комментарии
Автор

question_1=""
carry_on=True
while carry_on==True:
print("quiz - main menu")
print("""
1. instructions
2. quiz
3. quit
""")
choice=input("choose option (enter 1 or 2 or 3): ")
if choice=="1":
print("int=structions: read the question and enter your answer.")
elif choice=="2":
print("start the quiz")
question_1=input("what is the capital of france?: ")
if question_1=="paris":
print("correct")
else:
print("incorrect")
elif choice=="3":
print("thanks for playing")
carry_on=False
elif choice!="":
print("not a valid choice. enter 1 or 2 or 3")

coreyward
Автор

I wonder if anybody from my class will see this

deaboraku
visit shbcf.ru