[using loop] Python Program to Print Odd Numbers from 1 to 100

Published: 19 October 2022
on channel: Code With TJ
3,510
26

Hello Programmers, Welcome to my channel.

In this video you will learn about how to Python Program to Print Odd Numbers from 1 to 100

Python Scripts
======================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...


Code
===========================================================================


"""
Python Program to Print Odd Numbers from 1 to 100 [using loop]

While loop
"""
print("Odd Numbers from 1 - 100 are ...")

x = 1
while x replace_this_with_less_than_symbol= 100:
if x % 2 == 1:
print(x)
x = x + 1



Code
===========================================================================

"""
Python Program to Print Odd Numbers from 1 to 100 [using loop]

for loop
"""
print("Odd numbers from 1 - 100 are ...")

for x in range(1, 100+1):
if x % 2 == 1:
print(x)


Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners


On this page of the site you can watch the video online [using loop] Python Program to Print Odd Numbers from 1 to 100 with a duration of hours minute second in good quality, which was uploaded by the user Code With TJ 19 October 2022, share the link with friends and acquaintances, this video has already been watched 3,510 times on youtube and it was liked by 26 viewers. Enjoy your viewing!