Zyphon_22
Coder
So im working on a text game in python and I first decided to use the time module:
[CODE lang="python" title="original"]import time
print("Hello")
time.sleep(2)
print("How are you")[/CODE]
But now i am creating a function and putting it in place of the time module like this:
[CODE lang="python" title="new and improved"]def dialog():
dialog = input("")
print("Hi")
dialog()
print("How are you")[/CODE]
im in the early stages of development and before i start getting quite far on.
I was wondering whether there is a cleaner version of new and improved which does what i am trying to show.
Thanks
[CODE lang="python" title="original"]import time
print("Hello")
time.sleep(2)
print("How are you")[/CODE]
But now i am creating a function and putting it in place of the time module like this:
[CODE lang="python" title="new and improved"]def dialog():
dialog = input("")
print("Hi")
dialog()
print("How are you")[/CODE]
im in the early stages of development and before i start getting quite far on.
I was wondering whether there is a cleaner version of new and improved which does what i am trying to show.
Thanks