[ create a new paste ] login | about

Link: http://codepad.org/52s25p4x    [ raw code | output | fork ]

Python, pasted on Sep 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
print('Возраст:')
age=int(input())
year='год'
if (age%100)-(age%10)==10:
year='лет'
elif age%10==2 or age%10==3 or age%10==4:
year='года'
elif age%10==5 or age%10==6 or age%10==7 or age%10==8 or age%10==9 or age%10==0:
year='лет'
print('Имя:')
name=str(input())
print('Привет, меня зовут', name)
print('Мне', age, year)


Output:
1
2
  Line 1
SyntaxError: Non-ASCII character '\xd0' in file t.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details


Create a new paste based on this one


Comments: