INF201/uke1/2:pp.py
2023-09-14 08:47:13 +02:00

15 lines
335 B
Python

def putinframe(text):
l = len(text)
print(l)
print(""*(l+6))
print(""+" "*(l+4) + "")
print(""+ " " + text + " "+ "")
print(""+" "*(l+4) + "")
print(""*(l+6))
def main():
name = input("Type yo name:")
putinframe(f"What's up {name}!")
if __name__ == "__main__":
main()