Code: Select all
firstname = "Ben"
letter1= firstname[0]
print("The first letter in your name is", letter1)Thanks, I will try this.scotty101 wrote: ↑Wed Mar 25, 2020 2:45 pmYou could just have a small while loop with a time.sleep in it.
Code: Select all
running = True def say_bye(): global running print("Exit") running = False while running: time.sleep(0.1)
Code: Select all
from guizero import App, Text
app = App()
text = Text(app, text="hello world")
app.display()
print ("Cleanup")Code: Select all
t=time.time()
r=time.time()-t