Feladat betöltése…
HTML markup is a good example of building a ready-made text template from small strings. Write a function make_tags that takes a tag name tag and a word word. Return a string where the word is wrapped in an opening and closing tag: first <tag>, then the word, then </tag>.
"i", "Yay""<i>Yay</i>""i", "Hello""<i>Hello</i>""cite", "Yay""<cite>Yay</cite>"def make_tags(tag: str, word: str) -> str:
Jelentkezz be a beküldési előzmények megtekintéséhez
BejelentkezésJelentkezz be az MI-mentor használatához
Bejelentkezés"i", "Yay""<i>Yay</i>""i", "Hello""<i>Hello</i>""cite", "Yay""<cite>Yay</cite>""b", """<b></b>""ii", "Hello""<ii>Hello</ii>""i!", "Hello""<i!>Hello</i!>"