PR3_Skriptsprachen_GruppeD_SL1/s1_a61_2.py

8 lines
150 B
Python
Raw Permalink Normal View History

2022-11-05 15:33:32 +01:00
if __name__ == "__main__":
2023-03-30 01:29:11 +02:00
# 6.1
print("This is a test".replace(" ", "-"))
2022-11-05 15:33:32 +01:00
2023-03-30 01:29:11 +02:00
# 6.2
2022-11-05 15:33:32 +01:00
s1 = "Hello, World"
2023-03-30 01:29:11 +02:00
print(s1[s1.find(",")::-1])