Advertisement
SansPapyrus683

1/26 Exercise Solutions

Jan 26th, 2022
986
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Exercise 2: Counting Combatants
  2. building_num = 3
  3. ninjas_in_each_building = 25
  4. tunnel_num = 2
  5. samurais_in_each_tunnel = 40
  6. print(building_num * ninjas_in_each_building + tunnel_num * samurais_in_each_tunnel)
  7.  
  8. # Exercise 3: Greetings!
  9. first_name = "Kevin"
  10. last_name = "Sheng"
  11. print("Hi there, " + first_name + " " + last_name)
  12.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement