and a variation of the above, which is the 'hardest' in the document:
first = input("Enter the first number, (0 to finish): ") firstint = int(first) a = "" finished = False while not finished: next = input("Enter the next number, (0 to finish): ") nextint = int(next) if nextint == 0: finished = True elif nextint > firstint: q = "Up" a = a+" "+q firstint = nextint elif nextint == firstint: q = "Same" a = a+" "+q firstint = nextint elif nextint < firstint: q = "Down" a = a+" "+q firstint=nextint print(a)
1 Attachment
@ObiWomKenobi started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
and a variation of the above, which is the 'hardest' in the document:
1 Attachment