diff --git a/Pyhton Module Week 1-task 12 b/Pyhton Module Week 1-task 12 new file mode 100644 index 0000000..818e647 --- /dev/null +++ b/Pyhton Module Week 1-task 12 @@ -0,0 +1,15 @@ +# Question 12: Get Midterm and Final grades from a student for any course. The sum of 40% of the midterm exam grade and 60% of the final grade will give the year-end average. +# If the average is below 50, "FAILED" will appear on the screen, and if it is 50 or above, "SUCCESSFUL" will be displayed on the screen. +# This printing process is 4 lessons. and the lessons will be written one after the other. +print("Enter info for 4 lessons:\n") +for i in range(1,5): + print("Lesson", i) + lesson = input("Enter lesson name: ") + midterm = float(input("Enter midterm grade: ")) + final = float(input("Enter final grade: ")) + average = midterm * 0.4 + final * 0.6 + if average >= 50: + print(lesson + ": SUCCESSFUL (Average: " + str(average) + ")\n") + else: + print(lesson + ": FAILED (Average: " + str(average) + ")\n") + i = i+ 1 \ No newline at end of file diff --git a/mithat_team_leader_week_1.py b/mithat_team_leader_week_1.py new file mode 100644 index 0000000..06f7638 --- /dev/null +++ b/mithat_team_leader_week_1.py @@ -0,0 +1,3 @@ +# Question 1: Write a Python code that prints numbers from 1 to 10 on the screen. +for i in range(1,11): + print(i) \ No newline at end of file