Modify the code to simpler way instead of using while true loop or Flags. def main() :…
Jump to turn (8)
- 1Modify the code to simpler way instead of using while true loop or Flags. def ma
- 2continuously ask for user selection until user wants to quit
- 3Terminate the program when user enters 4 to exit
- 4Terminate the program when user enters 4 to exit without using break or flag
- 5what is the use of defining main() function
- 6how to comment the line def main()
- 7What to comment for def main()
- 8If its not main () function, what is this function def deposit(balance, amount):
- User
Modify the code to simpler way instead of using while true loop or Flags.
def main() : balance = 10000
code