Variables in python

Published: 17 September 2025
on channel: Logic Class for Geeks
27
1

#variable is container to store values
#variable can store different types of data
#int,float,string,boolean,list,tuple,dictionary,set

#Variable_Name = value
a=10
b = a
print(b)
print(type(b))


a = 500
b = a + 1
c = a + b
d = a + b + c
print(d)


age = 5
user_name = "Maish"
print(user_name)
print(age + user_name)


myIntValue = 42
myFloatValue = 3.14
myStringValue = "Hello, World!"
myBoolValue = True
myListValue = [1, 2, 3, 4, 5]

print( myIntValue, type(myIntValue))
print(myFloatValue, type(myFloatValue))
print(myStringValue, type(myStringValue))
print(myBoolValue, type(myBoolValue))
print( myListValue, type(myListValue))


MyName = "Manish" #pascal case
myName = "Manish" #camel case
myname = "Manish" #flat case
my_name = Manish" #snake case

#coding #coding #programming #computerprogramming #programminglanguage #learncoding #basic #computerknowledge #firstcodingclass #python #c #helloworld #codingclass #logicclassforgeeks
Coding | Program | programming | coding class | logicclassforgeeks | learn coding


On this page of the site you can watch the video online Variables in python with a duration of hours minute second in good quality, which was uploaded by the user Logic Class for Geeks 17 September 2025, share the link with friends and acquaintances, this video has already been watched 27 times on youtube and it was liked by 1 viewers. Enjoy your viewing!