1.1 Continue Statement
1.1 Continue Statement
Roll No.:
Assignment No.: 01
Title: Develop programs to understand the control structures of python
Code:
# Program to find out even and odd number in between given range using for loop:
Output:
num = 0
n = int(input("Enter a number in between 1 to 10: "))
if n > 10:
print("please enter a number in between 1 to 10")
else:
while num < n:
num += 1
if (num % 2) == 0:
continue
print(num)
Output:
Output:
num = [1, 3, 6, 33, 76, 29, 17, 60, 47, 53, 88, 10, 2, 3, 100]
Output:
Output:
if(b>a):
if(b>c):
print("b is greatest")
if(c>a):
if(c>b):
print("c is greatest")
Output: