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 9, 2020 in Python by Aditya
• 120 points

edited Dec 9, 2020 by MD 510 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,460 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
517 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
637 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
419 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
1,987 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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
0 votes
3 answers

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

word cloud is not supported for python ...READ MORE

answered Apr 15, 2020 in Python by anonymous
33,062 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,460 points
13,458 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP