Python Forum
beginner and need help with python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
beginner and need help with python
#7
Thanks for your reply and this what i came up with after trying to improve and i didn't understand what you meant by "Take your while and make is <=10" bit

i = 10

while i > 0:
  if i == 6:
    print("sixpack")

  else i == 1:
    print("beer")

  else i < 1 

print ("no beer")
Reply


Messages In This Thread
beginner and need help with python - by Tjay - Oct-13-2019, 07:35 PM
RE: beginner and need help with python - by buran - Oct-14-2019, 05:54 AM
RE: beginner and need help with python - by Tjay - Oct-14-2019, 05:44 PM
RE: beginner and need help with python - by Tjay - Oct-14-2019, 07:06 PM
RE: beginner and need help with python - by Tjay - Oct-14-2019, 07:23 PM
RE: beginner and need help with python - by buran - Oct-14-2019, 07:37 PM
RE: beginner and need help with python - by Tjay - Oct-14-2019, 07:50 PM

Forum Jump:

User Panel Messages

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