INF201/uke1/2:pp.py

15 lines
335 B
Python
Raw Normal View History

2023-09-14 06:47:13 +00:00
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()