Skip to content

Codespace fluffy fiesta rvqq4x7jvv35jx5 #111

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .learn/resets/01-Console/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# print "Hello World!" on the console
1 change: 1 addition & 0 deletions .learn/resets/02-Declare-Variables/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ✅ ↓ your code here ↓ ✅
1 change: 1 addition & 0 deletions .learn/resets/03-Print-Variables-In-The-Console/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ✅ ↓ your code here ↓ ✅
1 change: 1 addition & 0 deletions .learn/resets/04-Multiply-Two-Values/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ✅ ↓ your code here ↓ ✅
4 changes: 4 additions & 0 deletions .learn/resets/05-User-Inputed-Values/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
age = int(input('What is your age?\n'))
# ✅ ↓ CHANGE THE CODE BELOW TO ADD 10 TO AGE ↓ ✅

print("Your age is: "+str(age))
6 changes: 6 additions & 0 deletions .learn/resets/06-String-Concatenation/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ✅ ↓ Set the values for my_var1 and my_var2 here ↓ ✅


## Don't change anything below this line
the_new_string = my_var1 + ' ' + my_var2
print(the_new_string)
13 changes: 13 additions & 0 deletions .learn/resets/07-Create-a-Basic-HTML/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
a = '</title>'
b = '</html>'
c = '<head>'
d = '</body>'
e = '<html>'
f = '</head>'
g = '<title>'
h = '<body>'

# ❌ ⬆ DON'T CHANGE THE CODE ABOVE ⬆ ❌

# ✅ ↓ start coding below here ↓ ✅

3 changes: 3 additions & 0 deletions .learn/resets/08.1-Your-First-If/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
total = int(input('How much money do you have in your pocket\n'))

# ✅ ↓ YOUR CODE HERE ↓ ✅
12 changes: 12 additions & 0 deletions .learn/resets/08.2-How-Much-The-Wedding-Costs/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
user_input = int(input('How many people are coming to your wedding?\n'))

# ❌ ⬆ DON'T CHANGE THE CODE ABOVE ⬆ ❌


if user_input <= 50:
price = 4000
# ✅ ↓ Your code here ↓ ✅


# ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌
print('Your wedding will cost '+str(price)+' dollars')
8 changes: 8 additions & 0 deletions .learn/resets/09-Random-Numbers/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import random

def get_randomInt():
# ✅ ↓ CHANGE ONLY THIS ONE LINE BELOW ↓ ✅
random_number = random.random()
return random_number

print(get_randomInt())
6 changes: 6 additions & 0 deletions .learn/resets/10-Calling-Your-First-Function/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def is_odd(my_number):
return (my_number % 2 != 0)


def my_main_code():
# ✅ ↓ Your code here ↓ ✅
6 changes: 6 additions & 0 deletions .learn/resets/10.1-Creating-Your-First-Function/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def add_numbers(a,b):
# This is the function's body ✅↓ Write your code here ↓✅


# ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌
print(add_numbers(3,4))
3 changes: 3 additions & 0 deletions .learn/resets/11-Create-A-New-Function/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import random

# ✅↓ Write your code here ↓✅
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"editor.minimap.enabled": false,
"workbench.editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
}
},
"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
}
5 changes: 4 additions & 1 deletion exercises/01-Console/app.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# print "Hello World!" on the console
# print "Hello World!" on the console

print("Hello World!")

4 changes: 4 additions & 0 deletions exercises/02-Declare-Variables/app.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# ✅ ↓ your code here ↓ ✅

name = "Yellow"

print(name)
6 changes: 5 additions & 1 deletion exercises/03-Print-Variables-In-The-Console/app.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# ✅ ↓ your code here ↓ ✅
# ✅ ↓ your code here ↓ ✅
color = "red"
item = "marker"

print(color, item)
4 changes: 4 additions & 0 deletions exercises/04-Multiply-Two-Values/app.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# ✅ ↓ your code here ↓ ✅

variable_are_cool = 2345 * 7323

print(variable_are_cool)
3 changes: 2 additions & 1 deletion exercises/06-String-Concatenation/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ✅ ↓ Set the values for my_var1 and my_var2 here ↓ ✅

my_var1 = "Hello"
my_var2 = "World"

## Don't change anything below this line
the_new_string = my_var1 + ' ' + my_var2
Expand Down
2 changes: 2 additions & 0 deletions exercises/07-Create-a-Basic-HTML/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@

# ✅ ↓ start coding below here ↓ ✅

html_document = str(b + c + a + g +f + d + h + e)
print(html_document)
13 changes: 13 additions & 0 deletions exercises/08.1-Your-First-If/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
total = int(input('How much money do you have in your pocket\n'))

# ✅ ↓ YOUR CODE HERE ↓ ✅

if total > 100:
print("Give me your money!")

elif total > 50:

print("Buy me some coffee, you cheap!")

else:

print("You are a poor guy, go away!")


7 changes: 7 additions & 0 deletions exercises/08.2-How-Much-The-Wedding-Costs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
price = 4000
# ✅ ↓ Your code here ↓ ✅

elif user_input <= 100:
price = 10000
elif user_input <= 200:
price = 15000
else:
price = 20000


# ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌
print('Your wedding will cost '+str(price)+' dollars')
7 changes: 5 additions & 2 deletions exercises/09-Random-Numbers/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

def get_randomInt():
# ✅ ↓ CHANGE ONLY THIS ONE LINE BELOW ↓ ✅
random_number = random.random()
random_number = random.randint(1, 10)
return random_number

print(get_randomInt())
print(get_randomInt())



6 changes: 5 additions & 1 deletion exercises/10-Calling-Your-First-Function/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ def is_odd(my_number):


def my_main_code():
# ✅ ↓ Your code here ↓ ✅
# ✅ ↓ Your code here ↓ ✅

print(is_odd(45345))

my_main_code()
Loading