Lec 3
Lec 3
Week 2
Lecture 3
Comments, Data Types, Variables
What is instruction
• Data Types
• Variables
#print("Hello, World!")
3/5/2024 Week2 \ Lec3 5
• Python does not really have a syntax for
multiline comments.
y = "John“
print(x)
print(y)
x = 4 # x is of type int
x = "Sally" # x is now of type str
print(x)
Variable names are case-sensitive (age, Age and AGE are three
different variables)
print(type(x))
x=input()
print(x)
operators
https://www.youtube.com/watch?
v=X6TcB0DNLE8
END OF LECTURE
3/5/2024 Week2 \ Lec3 26