Learn Python Variables and Types

////Learn Python Variables and Types

Learn Python Variables and Types

Mixing operators between numbers and strings are not supported:

# This will not work!
one = 1
two = 2
hello = "hello"

print(one + two + hello)

Above code will produce the following error:
TypeError: unsupported operand type(s) for Add: ‘int’ and ‘str’ on line 6 in main.py

Trinket.io on-line Python compiler

By |2019-02-08T19:21:28-05:00April 7th, 2018|Categories: Computer Programming Languages, Python|Tags: , |

About the Author:

I am a loving father, & husband. I am a computer enthusiast. I have used and enjoyed computers since I was young and I enjoy teaching young minds how to code, because it teaches them how to think. Today with YouTube, and social media garbage our youth are losing the ability to think on their own and solve problems. I believe this is a serious epidemic as kids today dont understand that technology is a tool. This tool is being abused, and its underlying effects are taking its toll on kids behaviour, and learning.