### 1. homework ### Domen Jug ### 20241010 ############### #How much I'm going to have to travel for DM2 course. TT = 8 #TT ->How many times I'm going to be travelling to the course TB = 8 #TB ->How many times I'm going to be travelling back home print "I'm going to travel", TT + TB, "times for this DM2 course." TTL = 66 #TTL ->Distance in km that I travel on my way to the course TBL = 88 #TBL ->Distance in km that I travel on my way back home print "Every friday I travel", TTL, "kilometers on my way to the course and", TBL, "kilometers when I drive back home." "\n" TTL1 = 1.2 #TTL1 >Distance from the place I live during the week to the train station in Mureck. TTL2 = 61 #TTL2 ->Distance that I travel with the train from Mureck to Graz TTL3 = 3.4 #TTL3 ->Distance from the Graz Hauptbahnhof to Kronesgasse 5 TBL1 = 3.4 #TBL1 ->Distance from Kronesgasse 5 to Graz Hauptbahnhof TBL2 = 47 #TBL2 ->Distance from Hauptbahnof in Graz to Spielfeld-Strass TBL3 = 38 #TBL3 ->Distance from Spielfeld-Strass to my home print "On my way to the course I travel", TTL1, "kilometers by car to the train station." print "Then I travel", TTL2, "kilometers with the train and", TTL3, "kilometers with the tram." "\n" print "On my way home I travel", TBL1, "kilometers with the tram" print "Then I travel", TBL2, "kilometers with the train and ", TBL3, "kilometers with the car.""\n" print "During this course I will travel ", TTL * 8 + TBL * 8, "kilometers." print "Out of the" , TTL * 8 + TBL * 8, "kilometers, I will travel with 3 different types of transport." print "I will travel",TTL1 * 8 + TBL3 * 8, "kilometers with a car" print "I will travel",TTL2 * 8 + TBL2 * 8, "kilometers with the train and" print "I will travel", TTL3 * 8 + TBL1 * 8, "kilometers with the tram."