There are some Error so resolve quickly

0 votes
thistuple = tuple(("apple", "banana", "cherry"))
print(thistuple)
THIS IS MY ERROR:  PLEASE RESOLVE MY ISSUE
Traceback (most recent call last):
  File "C:\Users\Aadi\PycharmProjects\pythonProject\Tuple.py", line 36, in <module>
    thistuple = tuple(("apple", "banana", "cherry"))
TypeError: 'tuple' object is not callable
Dec 8, 2020 in Python by Aditya
• 120 points

edited Dec 9, 2020 by MD 67 views

1 answer to this question.

0 votes

Hi@Aditya,

It is working fine in my python prompt.

>>> thistuple = tuple(("apple", "mango", "orange"))
>>> print(thistuple)
('apple', 'mango', 'orange')

You need to check your environment in python. First, try with the prompt.

answered Dec 9, 2020 by MD
• 95,200 points

Related Questions In Python

0 votes
1 answer

Are there any dependancies for installing matplotlib in python?

Matplotlib requires the following dependencies: Python (>= 3.6) FreeType ...READ MORE

answered May 30, 2019 in Python by Farzi
119 views
0 votes
1 answer

Are there any copyrights restriction on python usage?

You can do anything and everything with ...READ MORE

answered May 31, 2019 in Python by Haseeb
116 views
0 votes
0 answers

What are some sources to learn design techniques in python?

The idea is to build creative error ...READ MORE

Jun 6, 2019 in Python by Waseem
• 4,540 points
88 views
0 votes
1 answer

How to resolve the error while importing cv2 from openCV in python?

I would recommend you go with anaconda ...READ MORE

answered Jul 31, 2019 in Python by Mohammad
• 3,230 points
690 views
0 votes
2 answers
+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, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,161 views
0 votes
0 answers
0 votes
3 answers

i am installing wordcloud using pip but i am unable to do that ....i am getting the following error

Hi @ Prajwala  All the members here, I ...READ MORE

answered Sep 14, 2020 in Python by Richa sharma
5,766 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,200 points
9,787 views