Python Forum
new to programming, any help would be appreciated!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
new to programming, any help would be appreciated!
#6
If I wanted to display Even/Odd for 0/1 I would do it like this
evenodd = ['Even', 'Odd']
for i in range(11):
    print(i, 'is', evenodd[i%2])
Reply


Messages In This Thread
RE: new to programming, any help would be appreciated! - by deanhystad - Sep-29-2020, 03:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 2,345 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  Any help is appreciated! Butch12 3 1,630 Jul-22-2023, 03:23 AM
Last Post: Larz60+
  interloper help appreciated combining two python3 scripts to add new conditions. Ricktoddfrank 0 1,965 Jun-22-2021, 10:24 PM
Last Post: Ricktoddfrank

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020