|
||||||
| Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
ok this is my code;
a = input ("enter first number") print a b = input ("entre secound number") print "addition", a+b print "multiply", a*b print ("close?") text = raw_input () if text == "yes": exit () if text == "no": now at the end i want to loop back to the start if "no" is entered, but i can't seem to get it. any advise? many thanks! Tim |
| Sponsored Links |
|
|
|
|||
|
thanks! i came up with this
choice = "" while choice!= "no": a = input ("enter first number") print a b = input ("enter secound number") print b print "addition", a+b print "multiply", a*b print ("retry?") text = raw_input () if text == "yes": exit () very nice! lol, just one question the first line what is the function of the two speach marks?? apart from that i get it! thanks Tim |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Well, look! A Noob! | maddy1080 | Introductions | 2 | 09-28-2007 08:24 AM |
| Noob Questtion.... | teckmonkey | C and C++ | 2 | 07-27-2007 11:51 PM |
| noob here.. help plz.. | wenwang | General Programming | 2 | 05-15-2007 11:06 AM |
| web dev noob question | jub jub jedi | General Programming | 1 | 03-26-2007 07:41 AM |
| Best Linux for a noob... | PC101 | General Programming | 14 | 09-22-2006 10:21 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |