Skip to content

Commit 3ce5c21

Browse files
Submitted
1 parent 3daf387 commit 3ce5c21

File tree

8 files changed

+55
-112
lines changed

8 files changed

+55
-112
lines changed

.idea/Assignments.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

+38-107
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Section_01/assignment_01.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
How would you change the code to meet the requirement?
66
77
"""
8-
9-
8+
result=15%4
9+
print(result)
1010

1111

1212

Section_01/assignment_02.py

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
print("We have {2} small boxes, {2} large boxes, {2} medium boxes".format(10,12,12))
99
1010
"""
11+
sentence='We actually have {} small, {} large, and {} medium boxes.'.format(10,12,12)
12+
print(sentence)
1113

1214

1315

Section_01/assignment_03.py

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
# Expected Result Printed: [[Cool]]
2222

2323
# Your code below:
24+
mid_of_chars=len(chars)//2
25+
result=chars[:mid_of_chars]+word+chars[mid_of_chars:]
26+
print(result)
2427

2528

2629

Section_01/assignment_04.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
# Expected Result Printed: omputerTuck
2020

2121
# Your code below:
22-
22+
result=word1[1:]+word2[0]+word2[2:]
23+
print(result)
2324

2425

2526

0 commit comments

Comments
 (0)