continuing to the next line is recommended you can make the final character on line be backslash ('\\'to indicate the statement continues on the next line this is not particularly neatbut it is rather rare situation most statements fit neatly on one lineand the creator of python decided it was best to make the syntax simple in the most common situation (many other languages require special statement terminator symbol like ';and pay no attention to newlinesextra parentheses here would not hurtso an alternative would be return (isbetween(point getx()pt getx()pt getx()and isbetween(point gety()pt gety()pt gety()the choosebutton py program is long partly because of repeated code the next section gives another version involving lists congress exercise person is eligible to be us senator who is at least years old and has been us citizen for at least years write an initial version of program congress py to obtain age and length of citizenship from the user and print out if person is eligible to be senator or not person is eligible to be us representative who is at least years old and has been us citizen for at least years elaborate your program congress py so it obtains age and length of citizenship and prints out just the one of the following three statements that is accurateyou are eligible for both the house and senate you eligible only for the house you are ineligible for congress more string methods here are few more string methods useful in the next exercisesassuming the methods are applied to string ss startswithpre returns true if string starts with string preboth '- startswith('-'and 'downstairsstartswith('down'are truebut ' startswith('-'is false endswithsuffix returns true if string ends with string suffixboth 'whoeverendswith('ever'and 'downstairsendswith('airs'are truebut ' endswith('-'is false replacesub replacement count returns new string with up to the first count occurrences of string sub replaced by replacement the replacement can be the empty string to delete sub for examples '- replace('-''' equals ' replace('-''' is still equal to ' replace(''' equals ' replace('dot ' equals ' dot dot dot if statements