PR3_Skriptsprachen_GruppeD_SL1/s1_a61_2.py

8 lines
150 B
Python

if __name__ == "__main__":
# 6.1
print("This is a test".replace(" ", "-"))
# 6.2
s1 = "Hello, World"
print(s1[s1.find(",")::-1])