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 PostTry and have a good around in the other threads. This has been done myriad times.
All 6 Replies
SgtMe 46 Veteran Poster Featured Poster
stack111 0 Newbie Poster
TrustyTony 888 ex-Moderator 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.