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!)
Jump to Post
You 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 …
All 6 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.