Data Types in Python
a = "hello"
b = 12
c = 8.6
print(type(a))
print(type(b))
print(b+c)
# print(a+b)
#String str
#Integer int
#Float float 2.7 13.5 9.0
#Boolean bool True False
# num = 15
# num1 = str(num)
# print(type(num1))
# print(type(num))
num1 = "15"
num2 = "5"
print(num1 + num2)
str1 = "hello "
str2 = "world"
print(str1 + str2)
Post a Comment