Skip to content

Instantly share code, notes, and snippets.

@raeq
Created May 3, 2020 19:16
Show Gist options
  • Save raeq/227c5fa3f2f17df1a50bb23c8fc893a7 to your computer and use it in GitHub Desktop.
Save raeq/227c5fa3f2f17df1a50bb23c8fc893a7 to your computer and use it in GitHub Desktop.
Casting sets and tuples
geolocation:tuple = (25.001, 25.001)
students:set = {"Harry", "Tom", "Jane", "Sally"}
print(set(geolocation))
print(tuple(students))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment