I am very new to programming and I am just starting out with python. I found some exercises to practice a little bit and i got stuck at while and for loops.
I want to design a program that asks for a donation, and keeps asking for this donation until the minimum amount of 50 euro is donated. WHen this minimum or more is reached i want to stop the program and thank people for the donation.
My code looks like this:
donation = raw_input("enter your donation: ")
while donation < 50:
donation= raw_input("We are sorry that's not enough, enter again: ")
if donation >= 50 print "thank you for the donation"
but this doesn't work at all, i feel like i am missing something completely here.
Who could help me write a working code?