Tuples
In tuples we cannot change the values in the index . Furthermore we keep the values that we know will not change until the end of program.
--------------------------------------------------------------------------------------
#Syntax
tuple=('Everything we print')
print(tuple)
--------------------------------------------------------------------------------------
Here i can explain the tuple with example:
tuple1=('student name' , 'student ID' , 'phone no is 030.....')
print(tuple1)
output:
tuple example |
2 Comments
Waoo
ReplyDeleteFantastic bro
ReplyDelete