Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created March 3, 2021 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/11520df679bcc9299b75e6e49013a2d5 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/11520df679bcc9299b75e6e49013a2d5 to your computer and use it in GitHub Desktop.
num=(1,2,3,4,5)
#unpacking first and rest of elements
first,*rest= num
print (first)#Output: 1
print (rest)#Output: [2,3,4,5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment