-
-
Save IndhumathyChelliah/05bfae887a234109802e557a18cd7e78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tuple packing | |
emp_info='Python',5,'Developer' | |
print (emp_info) | |
#Output:('Python', 5, 'Developer') | |
print (type(emp_info)) | |
#Output:<class 'tuple'> | |
#tuple unpacking | |
skill,exp,role=emp_info | |
print (skill)#Output:Python | |
print (exp)#Output:5 | |
print (role)#Output:Developer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment