Skip to content

Commit e5f6e53

Browse files
committed
Pending changes exported from your codespace
1 parent 2a21842 commit e5f6e53

File tree

75 files changed

+375
-28
lines changed

Some content is hidden

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

75 files changed

+375
-28
lines changed

.learn/resets/001-hello_world/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Sum all three input numbers and print on the console the result
2+
first_number = int(input("First input: "))
3+
second_number = int(input("Second input: "))
4+
third_number = int(input("Third input: "))
5+
6+
7+
# Print here the sum of all three inputs
8+
print(first_number+second_number)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Complete the function to return the area of a triangle
2+
def area_of_triangle(base, height):
3+
# Your code here, please remove the "None"
4+
return None
5+
6+
# Testing your function
7+
print(area_of_triangle(3, 5))

.learn/resets/004-hello_harry/app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Complete the function below to print the output as per the example
2+
def hello_name(name):
3+
# Your code here
4+
return None
5+
6+
# Invoke the function with your name as the function's argument
7+
print(hello_name("Bob"))
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Complete the function to return the previous and next number of a given number
2+
def previous_next(num):
3+
# Your code here
4+
return None
5+
6+
7+
# Invoke the function with any integer as its argument
8+
print(previous_next(179))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def apple_sharing(n,k):
2+
# Your code here
3+
return None
4+
5+
6+
print(apple_sharing(6,50))
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def square(num):
2+
# Your code here
3+
return None
4+
5+
print(square(6))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def hours_minutes(seconds):
2+
# Your code here
3+
return None
4+
5+
# Invoke the function and pass any integer as its argument
6+
print(hours_minutes(3900))
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def two_timestamp(hr1, min1, sec1, hr2, min2, sec2):
2+
# Your code here
3+
return None
4+
5+
6+
# Invoke the function and pass two timestamps(6 intergers) as its arguments
7+
print(two_timestamp(1,1,1,2,2,2))

.learn/resets/009-two_digits/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Complete the function to return the tens digit and the units digit of any interger
2+
def two_digits(number):
3+
# Your code here
4+
return None
5+
6+
7+
# Invoke the function with any two digit integer as its argument
8+
print(two_digits(79))

0 commit comments

Comments
 (0)