Python Basics | Comments, Print, Variables, Data Types

Опубликовано: 03 Июнь 2026
на канале: Functional Programming Tutor
9
2

The code for today's video is posted below for your use/reference with exception to the "greater than/less than" symbols because the description box doesn't like them. I will find a work around for this in the future hopefully.

In today's video I talk about Python comments, the print function, variables, and data types.

Code:
#comments/python syntax
#print('this is a comment')
'''this
will
be
ignored'''

x = 10
y = 5
z = x - y

#python print() function
print('Hello, World')
print(x + y)

#data types/variables
numbers = 10 #integers

decimals = 10.2 #floats

words = 'Hello, World' #strings

Numbers = 11
_number = 12
x1234 = 1234

print('10 - 5 = ')
print(z)