https://www.onlinegdb.com/online_python_compiler
Tvuj python kod mi tam hlasi nejake errory. Nejsem v py tak dobry, abych dokazal zjistit, kde vsude v tom mas chyby. A take nerozumim tve otazce. Co je vstup. Co se pokousis s tim delat. A jaky by mel byt vystup? Ani si nedokazi tipnout verzi pythonu. V kazde se neco dela jinak nez v te predchozi a tudiz kody na netu nemusi fungovat v nejnovejsi verzi nebo naopak ve starsi.
Tipnu si.
google = python string replace all
https://www.geeksforgeeks.org/…eplace/
# Python3 program to demonstrate the
# use of replace() method
string = "geeks for geeks geeks geeks geeks"
# Prints the string by replacing all
# geeks by Geeks
print(string.replace("geeks", "Geeks"))
# Prints the string by replacing only
# 3 occurrence of Geeks
print(string.replace("geeks", "GeeksforGeeks", 3))
https://stackoverflow.com/questions/3588361/how-do-you-replace-all-the-occurrences-of-a-certain-character-in-a-string
>>> input_given="join smith 25"
>>> chars="".join([i for i in input_given if not i.isdigit()])
>>> age=input_given.translate(None,chars)
>>> age
'25'
>>> name=input_given.replace(age,"").strip()
>>> name
'join smith'
google = python format example
https://www.geeksforgeeks.org/…rmat-method/