Skip to content

Commit 98842c8

Browse files
committed
Exercises completed
1 parent 99576db commit 98842c8

File tree

43 files changed

+216
-14
lines changed

Some content is hidden

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

43 files changed

+216
-14
lines changed

.learn/resets/01-Console/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# print "Hello World!" on the console
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ✅ ↓ your code here ↓ ✅
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ✅ ↓ your code here ↓ ✅
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ✅ ↓ your code here ↓ ✅
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
age = int(input('What is your age?\n'))
2+
# ✅ ↓ CHANGE THE CODE BELOW TO ADD 10 TO AGE ↓ ✅
3+
4+
print("Your age is: "+str(age))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ✅ ↓ Set the values for my_var1 and my_var2 here ↓ ✅
2+
3+
4+
## Don't change anything below this line
5+
the_new_string = my_var1 + ' ' + my_var2
6+
print(the_new_string)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
a = '</title>'
2+
b = '</html>'
3+
c = '<head>'
4+
d = '</body>'
5+
e = '<html>'
6+
f = '</head>'
7+
g = '<title>'
8+
h = '<body>'
9+
10+
# ❌ ⬆ DON'T CHANGE THE CODE ABOVE ⬆ ❌
11+
12+
# ✅ ↓ start coding below here ↓ ✅
13+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
total = int(input('How much money do you have in your pocket\n'))
2+
3+
# ✅ ↓ YOUR CODE HERE ↓ ✅
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
user_input = int(input('How many people are coming to your wedding?\n'))
2+
3+
# ❌ ⬆ DON'T CHANGE THE CODE ABOVE ⬆ ❌
4+
5+
6+
if user_input <= 50:
7+
price = 4000
8+
# ✅ ↓ Your code here ↓ ✅
9+
10+
11+
# ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌
12+
print('Your wedding will cost '+str(price)+' dollars')
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import random
2+
3+
def get_randomInt():
4+
# ✅ ↓ CHANGE ONLY THIS ONE LINE BELOW ↓ ✅
5+
random_number = random.random()
6+
return random_number
7+
8+
print(get_randomInt())

0 commit comments

Comments
 (0)