Advertisement
Spocoman

02. Chars to String

Jan 18th, 2022 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. first_chr = input()
  2. second_chr = input()
  3. third_chr = input()
  4.  
  5. print(first_chr + second_chr + third_chr)
  6. #print(f'{first_chr}{second_chr}{third_chr}')
  7.  
  8. OR:
  9.  
  10. first_chr = ord(input())
  11. second_chr = ord(input())
  12. third_chr = ord(input())
  13.  
  14. print(chr(first_chr) + chr(second_chr) + chr(third_chr))
  15.  
  16. Тарикатско решение:)
  17.  
  18. print(input() + input() + input())
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement