needing help on :goto - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32) +---- Thread: needing help on :goto (/showthread.php?tid=1699) |
needing help on :goto - Mr.FeellingLeSS - 10-17-2009 I'm working on a gambling prototype program and i was wondering. What the names are of the good old fashion :goto A and :label A commands for commandcenter in python. RE: needing help on :goto - g4143 - 10-17-2009 (10-17-2009, 02:43 PM)Mr.FeellingLeSS Wrote: I'm working on a gambling prototype program and i was wondering. Python doesn't have an equivalent.. If you trying to break out of a nested statement then use break or if you want to get fancy you can use an exception... RE: needing help on :goto - nevets04 - 10-17-2009 you can define a fuction, then just type the name of the fuction I.E Code: def h(): RE: needing help on :goto - L0iz - 10-18-2009 You can also use a loop function. While Code: x = 1 This one will keep adding 1 to x, until x*x = 4. For Code: a = [1,2,3,4,5,6,7,8,9] This will assign every value in a to x and print x. RE: needing help on :goto - Mr.FeellingLeSS - 10-18-2009 ok thanks guys [/align] RE: needing help on :goto - Akshay* - 10-19-2009 goto : charatindex[2] This is the proper command for java and c. but i do not know about python. |