Zanjo_Betchi

W12A1 - Sentence [zanj0]

Oct 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. """
  2. @Author : zanj0
  3.  
  4. @Created : 15/10/2018
  5. """
  6.  
  7.  
  8. def make_upper(s,z,x):
  9.     temp = []
  10.     for i in s:
  11.         temp.append(i.upper())
  12.     sentence =   "".join(x for x in temp)  
  13.     sentence +=  "\n" if z<x-1 else ""
  14.     return sentence
  15.  
  16. n = int(input())
  17. for i in range(n):
  18.     print(make_upper(input(),i,n),end="")
Add Comment
Please, Sign In to add comment