Skip to content

Instantly share code, notes, and snippets.

@NirantK
Created April 16, 2018 11:59
Show Gist options
  • Save NirantK/413f48601f9e22887e74f8b263179fa5 to your computer and use it in GitHub Desktop.
Save NirantK/413f48601f9e22887e74f8b263179fa5 to your computer and use it in GitHub Desktop.
fstring expression eval demo
items = list(range(0, 5)) # create list of 5 elements
print(items)
# [0, 1, 2, 3, 4]
print(f'number of items: {len(items)}')
# number of items: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment