Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Codespace special tribble r49xr4549r52px64 #121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
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 ↓ ✅
1 change: 1 addition & 0 deletions exercises/08.1-Your-First-If/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
total = int(input('How much money do you have in your pocket\n'))

# ✅ ↓ YOUR CODE HERE ↓ ✅
print(total)
3 changes: 3 additions & 0 deletions exercises/09-Random-Numbers/app.py
Original file line number Diff line number Diff line change
@@ -5,4 +5,7 @@ def get_randomInt():
random_number = random.random()
return random_number

print(get_randomInt())
get_randomInt
random_number = random.random
print(get_randomInt())