O Level Previous paper
Ir al canal en Telegram
https://youtube.com/@Satya806 सभी लोग इस Channel को Subscribe कर लो https://t.me/O_levelpaper Telegram group Quiz 👉https://t.me/o_levelsatya #M4-R5_Paper #M2R5 #O_Level #M3R5_Notes #M1R5Video #PaidClass_O_Level #O_Level_Notes #Satya_Sir
Mostrar más732
Suscriptores
Sin datos24 horas
-17 días
-130 días
Archivo de publicaciones
# Leap year program in Python using if else
year = int(input("Enter a year: "))
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0:
print(year, "is a leap year")
else:
print(year, "is not a leap year")
else:
print(year, "is a leap year")
else:
print(year, "is not a leap year")
Enter the starting number: 1
Enter the ending number: 100
Armstrong numbers between 1 and 100:
1
2
3
4
5
6
7
8
9
# Armstrong numbers between two intervals in Python using for loop
def is_armstrong_number(number):
num_str = str(number)
num_digits = len(num_str)
sum_of_digits = sum(int(digit) ** num_digits for digit in num_str)
if sum_of_digits == number:
return True
else:
return False
# Example usage
start = int(input("Enter the starting number: "))
end = int(input("Enter the ending number: "))
print(f"Armstrong numbers between {start} and {end}:")
for number in range(start, end + 1):
if is_armstrong_number(number):
print(number)
Output 👉
Armstrong numbers between 1 and 10,000:
1
2
3
45
6
7
8
9
153
370
371
407
1634
8208
9474
➡️Types -02
# Python program to print all Armstrong numbers between 1 and 10,000
def is_armstrong_number(number):
num_str = str(number)
num_digits = len(num_str)
sum_of_digits = sum(int(digit) ** num_digits for digit in num_str)
if sum_of_digits == number:
return True
else:
return False
print("Armstrong numbers between 1 and 10,000:")
for number in range(1, 10001):
if is_armstrong_number(number):
print(number)
👉Output
Enter the starting number: 100
Enter the ending number: 500
Armstrong numbers between 100 and 500:
153
370
371
407
THE EXAMS..!!:
विश्व विजेता भारत❤️
Congratulations to every Indian
India won the world cup by 7 runs 💐
¡Ya disponible! Investigación de Telegram 2025 — los principales insights del año 
