Please find attached the assignment. As a student, Python is completely new for me so please answer in not a very complicated format. What's important is that the assignment should be solved with functions and the given file I should put my answer in, is already written: import sys for line in sys.stdin.readlines(): Also, there are two txt. files we should redirect from the Run Configurations. These txt files consists of: Piet van Gogh___5 6 7 4 5 6 5=20=22=10=2=0=0=1=0=1;Vincent Appel,Johannes Mondriaan Karel van Rijn___7 8 6 6 2=30=15=8=4=3=2=0=0=0; Herman Vermeer_4 4 2 4 5 6 6 9=10=10=5=1=1=0=0=0=1;Johannes Brood Johannes Brood__1 12=22=12=0=2=0=0=0=1=0;Herman Vermeer and: Christiaan Huygens___10 10 10 10 10 30=30=32=30=32=30=30=31=30=31;Isaac Newton,Albert Einstein Antoni van Leeuwenhoek___9 8 9 9 2=1=15=8=4=3=1=0=30=0; Hendrik Lorentz_10 10 10 9 10 10 9=10=40=5=1=1=0=0=0=40;Albert Einstein Baruch Spinoza___1 12=22=12=0=2=0=0=0=1=0;Herman Vermeer Jacobus van ’t Hoff___9 8 10 12=22=12=0=2=0=0=50=1=50;Desiderius Erasmus,Johannes van der Waals Finally, this assignment will be tested. Thank you!
Please find attached the assignment. As a student, Python is completely new for me so please answer in not a very complicated format. What's important is that the assignment should be solved with functions and the given file I should put my answer in, is already written:
import sys
for line in sys.stdin.readlines():
Also, there are two txt. files we should redirect from the Run Configurations. These txt files consists of:
Piet van Gogh___5 6 7 4 5 6
5=20=22=10=2=0=0=1=0=1;Vincent Appel,Johannes Mondriaan
Karel van Rijn___7 8 6 6
2=30=15=8=4=3=2=0=0=0;
Herman Vermeer_4 4 2 4 5 6 6
9=10=10=5=1=1=0=0=0=1;Johannes Brood
Johannes Brood__1
12=22=12=0=2=0=0=0=1=0;Herman Vermeer
and:
Christiaan Huygens___10 10 10 10 10
30=30=32=30=32=30=30=31=30=31;Isaac Newton,Albert Einstein
Antoni van Leeuwenhoek___9 8 9 9
2=1=15=8=4=3=1=0=30=0;
Hendrik Lorentz_10 10 10 9 10 10
9=10=40=5=1=1=0=0=0=40;Albert Einstein
Baruch Spinoza___1
12=22=12=0=2=0=0=0=1=0;Herman Vermeer
Jacobus van ’t Hoff___9 8 10
12=22=12=0=2=0=0=50=1=50;Desiderius Erasmus,Johannes van der Waals
Finally, this assignment will be tested. Thank you!
Step by step
Solved in 4 steps with 7 images