Skip to content

Commit ffa2903

Browse files
committed
add week2
1 parent 43fb83b commit ffa2903

6 files changed

Lines changed: 327 additions & 0 deletions

File tree

.idea/PythonCode2018.iml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 221 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

week2/week2.py

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
##y = 74
2+
##if y == 1:
3+
## print("y = 1")
4+
##elif y == 72:
5+
## print("y equals 72")
6+
##elif y == 74:
7+
## print("y equals 74")
8+
##elif y== 2:
9+
## print("yo")
10+
##else:
11+
## print("y is not equal to 1 or 72 or 74 ")
12+
##print(7)
13+
##
14+
##input = -6
15+
##
16+
##if(input > 0):
17+
## if(input == 74):
18+
## print("input equals 74")
19+
## if(input == 0):
20+
## print(0)
21+
## elif(input == 73):
22+
## print("input equals 73")
23+
## else:
24+
## print("input is > 0, but not equal to 74 or 73")
25+
##else:
26+
## print(input)
27+
##
28+
##x = 3
29+
##y = -6
30+
##if x > 0 or y > 0:
31+
## print("not weird :)")
32+
##else:
33+
## print("something is weird")
34+
##
35+
##if x > 0:
36+
## print("not weird :)")
37+
##elif y > 0:
38+
## print("not weird :)")
39+
##else:
40+
## print("something is weird")
41+
##
42+
##
43+
##
44+
##
45+
##
46+
##
47+
##
48+
##
49+
his_name = "Kinshuk"
50+
51+
print(his_name)
52+
print(len(his_name))
53+
54+
55+
##print("Vedi said Kinshuk's name was 8 letters long")
56+
57+
58+
# 4 types of data - int, float, string, boolean
59+
60+
y = "32"
61+
62+
63+
print(int(y) + 3)
64+
65+
66+
#int(), float(), str()
67+
68+
69+
z = 5
70+
print(str(z) + "3")
71+
72+
73+
74+
#58i82w0

0 commit comments

Comments
 (0)