-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCours 1.py
More file actions
56 lines (41 loc) · 898 Bytes
/
Copy pathCours 1.py
File metadata and controls
56 lines (41 loc) · 898 Bytes
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
print("Goodbye, cruel world !")
type("Goodbype, cruel world !")
print(5)
type(5)
num1 = '431'
num2 = '123'
add = num1 + num2
print(add)
num1 = 431
num2 = 123
add = num1 + num2
print(add)
print("Python's World")
print("""Hello
World
!""")
print("Hello\nWorld\n!")
num1 = 2
num2 = 3
print("addition : " + str(num1 + num2))
print("soustraction : " + str(num1 - num2))
print("multiplication : " + str(num1 * num2))
print("division : " + str(num1 / num2))
print("exposant : " + str(num1 ** num2))
num1 = 2.5
num2 = 7.3
print(num1 + num2)
print(str(num1) + str(num2))
print("""coffee
café
caffè
Kaffe""")
val = float(input("How much ? "))
print(2.5+val)
print(223/71)
print((1+1/10)**10)
print((1+1/100)**100)
print((1+1/1000)**1000)
print(('sparrow' > 'eagle'))
print(('dog' > 'cat') or (45 % 3 == 0))
print((60 - 45/5 + 10) == 1)