Advertisement
JkSoftware

Day 5 - For Loops

Nov 8th, 2021
574
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i in range(5):
  2.   print('#:', i)
  3.  
  4. fruits = ["Apple", "Peach", "Pear"]
  5.  
  6. for fruit in fruits:
  7.     print(fruit)
  8.     print(fruit + "Pie")
  9.     #print(fruits)
  10. print(fruits)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement