Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- a = []
- a.append(int(input()))
- a.append(int(input()))
- print(a)
- print(sum(a))
- annswer: [12, 34] 46
- #2
- n = str(input())
- n = n.split()
- a = []
- maximum = 0
- word = ''
- for i in n:
- a.append(i)
- if len(i) >= maximum:
- maximum = len(i)
- word = i
- else:
- continue
- print(word)
- answer: 'нетипичный'
- #4
- n = int(input())
- a = []
- for i in range(n+1):
- if i % 3 == 0 or i % 5 == 0:
- a.append(i)
- print(sum(a))
- answer: 234168
- #5
- x = str(input()).split()
- a = []
- for i in x:
- a.append(i)
- n = set(a)
- m = max(n, key = a.count)
- print(m)
- answer: cat
Advertisement
Add Comment
Please, Sign In to add comment