Ellie
June 13, 2022, 12:03am
1
Hi! I am trying on one of the python projects ‘Sea Level Predictor’. However, when I tried to run my code I keep getting an error “TypeError: ‘tuple’ object is not callable”
I tried searching it on the internet on what it meant, but fail to understand.
Heres my code:
https://replit.com/@Jade-Ruby-LRuby/boilerplate-sea-level-predictor-2#sea_level_predictor.py
sanity
June 13, 2022, 3:50am
2
Tuple is one of the data types in python. For example
my_tuple = (1, 2)
This data type (object), cannot be called though:
my_tuple()
# TypeError: 'tuple' object is not callable
To summary, somewhere in your code is variable name that’s referencing the tuple object. And it’s tried to call that object.
1 Like
system
Closed
December 12, 2022, 3:51pm
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.