ITE 260 - SAS - Day 11 - Loops and Iiteration Part 2
ITE 260 - SAS - Day 11 - Loops and Iiteration Part 2
Productivity Tip:
“However difficult life seems, there is always something you can do and succeed at.”- Stephen Hawking
for i in range(3):
print("Hello")
print("Goodbye")
row = 5
for i in range(1, row + 1, 1):
for j in range(1, i + 1):
print("*", end=' ')
print("")
B. Coding Time: Open your code editors like Notepad++, Sublime, or any available IDE.
1. Create a program that will accept 5 numbers then count the number of odd and even
numbers
Expected Output:
WRITE YOUR CODE HERE
Enter 5 numbers:
1
2
5
4
1
ODD: 3
EVEN: 2
2. Loop through the items in the cats list. cats = ["Persian", "Siamese",
"Ragdoll"]
for z ___ cats:
print(z)