-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvideo07.py
58 lines (42 loc) · 909 Bytes
/
video07.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
# -*- coding: utf-8 -*-
"""Video07.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/11eIqSaLDtMH9f0E1kjOBOPVhG8-sTrXP
"""
print("Salam Donya !!!")
print("Salam Donya !!!", 2+3)
print("yek adad vared kon :")
_havij = input()
print(_havij)
_akbar2 = input("yek adad vared kon :")
print(_akbar2)
x = input("ye chizi vared kon : ")
print(type(x))
y = input("yek adad vared kon : ")
print(2*y)
y = input("yek adad vared kon : ")
print('2'+y)
z = input("yek adad vared kon : ")
z = int(z)
print(z+10)
z = int(input("yek adad vared kon : "))
print(z+10)
# p = 2*pi*r , s= pi * r^2
r = float(input("shoa ra vared kon : "))
pi = 3.14
print("mohit barabar ast ba : ", 2*pi*r)
print("masahat barabar ast ba : ", pi*(r**2))
#swap
a = 20
b = 30
print(a,b)
t = a
a = b
b = t
print(a,b)
x = -10
y = 25
print(x,y)
x , y = y , x
print(x,y)