def print_menu(): print{'1. Kilometers to Miles') print{'2. Miles to Kilometers'} 1

def print_menu(): print{‘1. Kilometers to Miles’) print{‘2. Miles to Kilometers’}

def print_menu(): 
  print{'1. Kilometers to Miles') 
  print{'2. Miles to Kilometers'}

Here is what the above code is Doing:
1. It’s defining a function called print_menu.
2. It’s printing a menu of options.
3. It’s not returning anything.

Similar Posts