-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson2.py
64 lines (58 loc) · 1.14 KB
/
lesson2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# x = input()
# y = input()
# try:
# print(float(x) + float(y))
# except(ValueError):
# print(x + y)
# old = int(input('How are you old?\n'))
# print('I recommend it ', end='')
# if 3<=old<6:
# print('"zayac"')
# elif 6<=old<12:
# print('"mars"')
# elif 12<=old<16:
# print('"mystery island"')
# elif 16<=old:
# print('"potoc"')
# else:
# print('-')
# n=input('enter integer number : \n')
# while type(n)!=int:
# try:
# n=int(n)
# except ValueError:
# print('wrongly')
# n= input('enter integer number : \n ')
# if n%2==0:
# print('chetnoe')
# else:
# print('ne chetnoe')
# i = 0
# while i < 21:
# print("%7d" % 2**i)
# i += 1
# def test():
# x=float(input())
# if x>0:
# positive()
# elif x<0:
# negative()
# else:
# zero()---
# def positive():
# print('positive')
# def negative():
# print('negative')
# def zero():
# print('zero')
#
# test()
# def test(t):
# a=t**2
# b=t+10*3
# c=a+t
# print(a,b,c)
# return a,b,c
#
# a,b,c =test(9)
# print(a,b,c)