I have no clue how to start this
Use the for and while iterative structures within Python to program a loop that generates a list of odd numbers from 1 to 33 inclusive. (two sets of code here!)
stack111 0
Newbie Poster
Recommended Answers
Jump to PostYou need to show some effort! We won't write out the code for you. Research for and while loops on the official python documentation. Make a variable that will be the condition for the loop. Increment this by two each time, making sure it starts on one, and stops when …
Jump to PostWhy random number?
Can you say odd numbers from smallest to biggest until 33 inclusive? How could computer do the same?
All 6 Replies
SgtMe 46
Veteran Poster Featured Poster
stack111 0
Newbie Poster
TrustyTony 888
pyMod Team Colleague Featured Poster
convoluted 2
Light Poster
SgtMe 46
Veteran Poster Featured Poster
richieking 44
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.