Skip to content

Commit b8f3d7c

Browse files
author
Shehab Abdel-Salam
committed
Released 0.1.0
1 parent 29192b5 commit b8f3d7c

File tree

110 files changed

+294
-169
lines changed

Some content is hidden

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

110 files changed

+294
-169
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions

chapters/chapter02_variables/exercises/exercise_01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_01 - Convert Hours to Seconds
1+
# Exercise 01 - Convert Hours to Seconds
22
# Write a program that converts hours to seconds.
33

44
# For example, given the number of hours 2, the function should return 7200.

chapters/chapter02_variables/exercises/exercise_02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_02 - Temperature Conversion
1+
# Exercise 02 - Temperature Conversion
22
# Write a program that converts a temperature from Celsius to Fahrenheit.
33
# Hint: The formula is: F = C * 9/5 + 32
44

chapters/chapter02_variables/exercises/exercise_03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_03 - Add Numbers
1+
# Exercise 03 - Add Numbers
22
# Write a program that adds two numbers (provided as strings) and returns the sum as a string.
33
# For example, given the strings "123" and "456", the function should return "579".
44
# Hint: Can built-in functions help for type conversion?

chapters/chapter02_variables/exercises/exercise_04.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_04 - Difference in Length
1+
# Exercise 04 - Difference in Length
22
# Write a program that returns the length difference between two words.
33
# For example, given the words "Python" and "Programming", the function should return 3.
44
# Note: The function should return the absolute value of the difference.

chapters/chapter02_variables/exercises/exercise_05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_05 - Average Grade
1+
# Exercise 05 - Average Grade
22
# Write a program that takes three grades (int or float) from a user and calculate the average grade (float).
33
# The average grade should be **rounded to two decimal places**.
44

chapters/chapter02_variables/exercises/exercise_06.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_06 - Binary to Decimal
1+
# Exercise 06 - Binary to Decimal
22
# Write a program that takes a binary string as input and
33
# returns its decimal representation as an integer.
44
# For example, given the binary string "1010", the function should return 10.

chapters/chapter02_variables/exercises/exercise_07.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 02_07 - May The Force Be With You
1+
# Exercise 07 - May The Force Be With You
22
# Write a program that calculates the force of gravity between two objects.
33
# The formula to calculate the force of gravity is:
44
# F = G * (m1 * m2) / r^2

chapters/chapter03_operators/exercises/exercise_08.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 03_01 - Area of a Circle
1+
# Exercise 08 - Area of a Circle
22
# Write a program that computes the area of a circle given its radius.
33

44

chapters/chapter03_operators/exercises/exercise_09.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 03_02 - Slope of a Line
1+
# Exercise 09 - Slope of a Line
22
# Write a program that computes the slope of a line given two points.
33

44

0 commit comments

Comments
 (0)