# Author: Mehedi Afzal Farazi # Problem: Print 1 to 10 and then 9 to 1: # Code: for i in range(1,20): if i >= 1 and i <= 10: print(i) if i >= 11 and i <= 19: print(20-i) # ******************* # # Sample Output: # 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 9 # 8 # 7 # 6 # 5 # 4 # 3 # 2 # 1