Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set data type in Google Colab Input?

I tried to sum this equation on Google Colab

a=1
b=input("B:")
c=a+b
print(c)

I was googling, the offered solution is c=a+int(b) but an error happened TypeError: 'str' object is not callable

Please help me to solve on how to sum c in Google Colab. Thanks a lot

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I found no problem with the c=a+int(b) answer. Consider restarting your runtime.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading