What is a tuple in python?

0 votes
What do you mean by naming tuple in python?
May 20 in Python by Waseem
• 3,480 points
21 views

1 answer to this question.

0 votes

A tuple is a collection data type in python. We declare the tuple in the round brackets.

a = (0,1,2,3,4,5)

Named tuples are basically easy-to-create, lightweight object types. Named tuple instances can be referenced using object-like variable dereferencing or the standard tuple syntax

answered May 20 by Mohammad
• 1,500 points

Related Questions In Python

0 votes
3 answers
+1 vote
3 answers
0 votes
1 answer

What is the meaning of “int(a[::-1])” in Python?

Assumming a is a string. The Slice ...READ MORE

answered Aug 27, 2018 in Python by Priyaj
• 56,160 points
61 views
0 votes
1 answer

What is a “method” in Python?

It's a function which is a member ...READ MORE

answered Oct 23, 2018 in Python by SDeb
• 12,360 points
19 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 128 views
0 votes
2 answers

what is the procedure to the version of python in my computer?

Execute the following command on your terminal: python ...READ MORE

answered Mar 19 in Python by Alia
34 views
0 votes
1 answer

what is attribute error in python?

import pandas df = pd.read_csv('filename') it will give attribute ...READ MORE

answered Mar 27 in Python by Mohammad
• 1,500 points
82 views