Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions Pyhton Module Week 1-task 12
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions mithat_team_leader_week_1.py
Original file line number Diff line number Diff line change
@@ -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)