Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/XeMTL_Yx)
# 🐍 Python Assignment: Loops, Ranges, and String Manipulation

#### ✨ Instructions:
Expand Down
26 changes: 26 additions & 0 deletions assignment4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
for i in range(1,21):
print(i)
for i in range(1,21):
if i % 2 == 0 :
print(i)
for i in range(1,11):
if i != 5:
print(i)
continue


for i in range(1,11):
if i == 7:
break
print(i)


secret_number = 7
while True:
number=int(input("guess the number 1-10 : "))
if number == secret_number:
print(f"you got it , well done it's number {number}")
break
else:
continue