Page 514 - ComputerScience_Class_11
P. 514
F. Write the python program for the following:
1. *
**
***
****
2. Even numbers in 1 to 8:
2
4
6
8
3. Fizz
Buzz
Fizz
G. Find the output of the following programs:
1. for i in range(2):
for j in range(3):
print(i, j)
2. for i in range(1, 6):
if i % 2 == 0:
print(i, "Even")
else:
print(i, "Odd")
3. for ch in "PYTHON":
if ch == "O":
break
print(ch, end="")
512 Touchpad Computer Science (Ver. 3.0)-XI

