Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Exercise:
- def __init__(self, topic, course_name, judge_link, problems):
- self.topic = topic
- self.course_name = course_name
- self.judge_link = judge_link
- self.problems = problems
- text = ""
- while True:
- text_input = input()
- if text_input == "go go go":
- break
- text = text + text_input
- v = text.split(" -> ")
- exercise = Exercise(v[0], v[1], v[2], v[3].split(", "))
- print(f"Exercises: {exercise.topic}")
- print(f'Problems for exercises and homework for the "{exercise.course_name}" course @ SoftUni.')
- print(f"Check your solutions here: {exercise.judge_link}")
- for i in range(len(exercise.problems)):
- print(f"{i+1}. {exercise.problems[i]}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement