-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path02_basicShell.py
69 lines (48 loc) · 886 Bytes
/
02_basicShell.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
65
66
67
68
69
print( 3 + 4 )
#7
print( 3 * 20)
#60
print( 12 / 4)
#3.0
print( 8 + 2 * 10)
#28
print( (8 + 2) * 10)
#100
print( 18 / 4)
#4.5
print( 18%4)
#2
print( 5 * 5 * 5)
#125
print( 5 ** 3)
#125
balance = 5
print( 20 + balance)
#25
money = 18
print( money / balance)
#3.6
print( BCE )
#SyntaxError: invalid syntax
print( "BCE")
#'BCE'
print('I don't think he is 18')
#SyntaxError: invalid syntax
print("I don't think so")
#"I don't think so"
print('I don\'t think he is 18')
#"I don't think he is 18"
print("hey now brown cow")
#hey now brown cow
print('C:\Bachittarjeet\Desktop\newfolder')
#C:\Bachittarjeet\Desktop
#ewfolder
print(r'C:\Bachittarjeet\Desktop\newfolder')
#C:\Bachittarjeet\Desktop\newfolder
firstName = "Gabbar"
print(firstName + "Singh")
#'Gabbar Singh'
print(firstName + "Rathor")
#'Gabbar Rathor'
print(firstName * 5)
#'Gabbar Gabbar Gabbar Gabbar Gabbar'