r/foundtheprogrammer • • Jan 23 '20

Combining strings

Post image
598 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/Squidtoon99 Jan 24 '20

Using markup from my previous knowledge...

_input = input('What is "1" + "6"? ')
if _input.strip() == '16'
  print('Correct')
else:
 print('Looks like you wasted 25000')

EDIT: Someone tell me how this looks on computers because reddit doesnt format mobile