Skip to content

Commit fd8e516

Browse files
100 Python Exercises from Basic to Advanced Level
1 parent 3987dca commit fd8e516

File tree

526 files changed

+11553
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

526 files changed

+11553
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#What will this script produce?
2+
#A: 3
3+
a = 1
4+
a = 2
5+
a = 3
6+
print(a)
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/2017-01-03_09-18-40-1e2888032612b338d1a68f6b3a717564/Beginner.png"></figure>
2+
3+
<p><strong><u>Question</u></strong>: Let's start with easy things first. What will the following code produce?</p>
4+
5+
6+
7+
8+
9+
10+
11+
<pre class="prettyprint linenums">a = 2
12+
a = 4
13+
a = 6
14+
print(a + a + a)</pre>
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+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
<figure><img src="https://udemy-images.s3.amazonaws.com:443/redactor/2017-01-04_08-57-41-f7428189ff9760c31962b9643ff64b5f/Arrrows.bmp"></figure>
105+
106+
<p><strong><u>Hint</u></strong>Python reads and executes scripts from top to bottom.<br></p>
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
<p><br></p>

0 commit comments

Comments
 (0)