Skip to content
Merged
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
38 changes: 31 additions & 7 deletions Exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,37 @@
# print("we move")
# break

#
# live = 6
# num = 0
#
# for count in range(live):
# if num < live:
# live -= 1
# print(live)
#
# # print(live)

def greet(city, name, location):
print("Hello ", end='')
print("World")
print(f"I live in {city} and my name is {name}, you can find me in {location} ")


greet(location="canada", name="hafeez", city="Toronto")


# Write your code below this line 👇
def paint_calc(height, width, cover):
numbOfCans = (height * width) / coverage
print(round(numbOfCans))

live = 6
num = 0

for count in range(live):
if num < live:
live -= 1
print(live)
# Write your code above this line 👆
# Define a function called paint_calc() so that the code below works.

# print(live)
# 🚨 Don't change the code below 👇
test_h = int(input("Height of wall: "))
test_w = int(input("Width of wall: "))
coverage = 5
paint_calc(height=test_h, width=test_w, cover=coverage)