Skip to content

Instantly share code, notes, and snippets.

@kervel
Created April 2, 2020 14:05
Show Gist options
  • Save kervel/1eaabb723e6e0fcd57ff845e7ddc759d to your computer and use it in GitHub Desktop.
Save kervel/1eaabb723e6e0fcd57ff845e7ddc759d to your computer and use it in GitHub Desktop.
say my name
def say_my_name(name):
"""
Print the current widget value in short sentence
"""
print(f'My name is {name}')
widgets.interact(say_my_name, name=["Jim", "Emma", "Bond"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment