Variables

Variables in Programming Language offer a method of storing data values. If there is any value that we want to use later such as a date or a string, we use the variable to store that value In Python, variables are assigned using equals sign ( = )

Creating Variables

Let’s create a variable (greeting_string) where we will store the message: “Hello there, my friend”. It should look like the one below.

				
					greeting_string = "Hello there, my friend"

				
			

Example

				
					greeting_string = "Hello there, my friend"
print(greeting_string)

#Output: Hello there, my friend
				
			
In the above example, we have stored our message/ string value in the variable: greeting_string
When we using this variable in our print() function, the value stored in the variable is printed as an output on our device.
Here are some more examples:
				
					#Example: 1

x = 5
y = 10
print(x + y)
#output: 15
				
			
				
					#Example: 2

x = 5
y = 10
print(x * y)
#output: 50
				
			
				
					#Example: 3

x = 10
y = 14
my_age = x + y

print("My age is " + my_age)

#output: My age is 24
				
			

ūüö©Explore Jamfinity

Free tutorials on coding languages for beginners.

Python Tutorials
Jamil

Introduction to Python 3

Menu Learn Python 3 Introduction to Python 3 Print in Python Comments in Python Multi-line Strings in Python Python Strings Multi-line Strings in Python Variables

Read More ¬Ľ
Basic MySQL
Jamil

Basic MySQL

Basic MySQL is a short Tutorial Course Designed for Students who want to learn about MySQL codes and their uses in a short period of time

Read More ¬Ľ
HTML Tutorial
Jamil

HTML Tutorials

Learn HTML Language, the heart of all web pages. Get one step closer to becoming a web developer. HTML is extremely easy to learn and is recommend for people who are eager to get into web development.

Read More ¬Ľ

Contracts in Commercial Law

A contract is an agreement enforceable between parties. In the commercial environment, a contract provides security to the parties involved. The contract starts with an

Read More
Customer Relationship Groups

Customer Relationship Groups in Marketing

Customers can be classified into four groups according to profits obtained from them and loyalty.These four relationship groups are Butterflies, True-Friends, Strangers, and Barnacles. Strangers:

Read More

paiton¬† pythone¬† langage python¬† python descargar¬† python software¬† replit python¬† descargar python¬† python for windows¬† python docs¬† python operator¬† python basics¬† python Ś≠óÁ¨¶šł≤ŤĹ¨śēįŚ≠ó¬† python language¬† ŚĽĖťõ™Ś≥į python¬† python Ś≠óÁ¨¶šł≤śą™ŚŹĖ¬† numpy python¬† python śēįÁĽĄ¬† www.python.org download ¬†python org¬† python functions¬† python en ligne¬† python windows¬† terrifying moment python emerges from car’s hood while driving¬† python Áą¨Ťôꬆ python eval¬† repl.it python¬† append python¬† python compiler online¬† python Ś§öÁļŅÁ®č¬† python documentation¬† python //¬† python ś≠£ŚąôŤ°®Ťĺ匾Ź¬† split python¬† python.org download¬† burmese python¬† tkinter python¬† python with¬† thonny python¬† python import¬† python opencv¬† python yield¬† google colab python¬† python idle download¬† python coding¬† python turtle¬† range python¬† python def¬† python csv¬† python regex¬† python matplotlib¬† python assert¬† colt python¬† python forśĖᬆ python while¬† payton¬† python os¬† python numpy¬† python logging¬† python programmiersprache¬† python join¬† python code¬† python tkinter¬† python sort¬† python pip¬† enumerate python¬† python tuple¬† python append¬† anaconda python distribution¬† python open¬† what is python¬† idle python download¬† python interpreter¬† python strip¬† python array¬† opencv python¬† python gui¬† online python¬† python time¬† python interview questions¬† python re¬† python replace¬† python sleep¬† in python¬† pandas python¬† python input¬† spyder python¬† python try¬† for loop python¬† python Ś≠óŚÖł¬† python excel¬† python tutor¬† python zip¬† ball python¬† python enumerate¬† vscode python¬† python forŚĺ™ÁéĮ¬† python ŚÖ•ťĖĬ† python format¬† python requests¬† python lambda¬† learn python¬† python datetime¬† python shell¬† python for¬† python json¬† python random¬† python dict¬† python pandas¬† python map¬† python set¬† python for loop¬† install python¬† python class¬† python programming¬† python if¬† python print¬† python dictionary¬† python split¬† python install¬† python ide¬† www.python.org¬† python compiler¬† python programming language¬† python range¬† python „ā§„É≥„āĻ„Éą„Éľ„Éꬆ monty python¬† python list¬† python online¬† download python¬† python tutorial¬† python.org¬† online python compiler¬† idle python¬† python online compiler¬† python idle¬† anaconda python¬† python download¬† ¬†¬†¬†¬†

docs.python¬† www in tutorial points¬† selenium python tutorial¬† doc python¬† www in tutorialspoint¬† python lessons¬† https //www.python.org manually.¬† pandas python tutorial¬† python school¬† flask python tutorial¬† pythonŚģėśĖĻ¬† www tutorialspoint¬† python tutor visualizer¬† how to learn python for free¬† learning python beginner¬† easy python docs¬† www.python.org/¬† docs.python.org¬† tutorial teacher¬† python kurs¬† python __¬† lenguaje python¬† learnpython.org¬† python tutorials for beginners¬† python programmieren¬† python w¬† tutorial python¬† python beginners¬† python manual¬† python programming tutorial¬† python for beginners pdf¬† python guide¬† ptho¬† pythontutor.com¬† learn python programming¬† www.python. ong¬† python.¬† opencv python tutorial¬† learn python for free¬† phyton¬† coding python¬† python tutorial for beginners pdf¬† python #¬† python basics for beginners¬† python learn¬† free python course¬† del python¬† python notes¬† python tutorial point¬† basics of python¬† python coding for beginners¬† python _¬† gui python¬† python /¬† learn python online¬† python tutorial pdf¬† how to code in python¬† python tutorialspoint¬† python document¬† learn python online free¬† python training¬† python |¬† pythonŚģėśĖĻśĖáś°£¬† // python¬† python visualizer¬† python .org¬† javatpoint python¬† python javatpoint¬† pythone¬† tutoriel¬† tutorialspoint python¬† pythonŤŹúťłü¬† python programming language documentation¬† python tutorials¬† java python¬† with python¬† pythontutor¬† python programming language tutorials¬† tutorials point¬† python learning¬† python lernen¬† how to use python¬† http //python.org¬† python –¬† learn python free¬† site www.javatpoint.com¬† python doc¬† python tutorial for beginners¬† how to learn python¬† python @¬† learning python¬† pythonŚ≠¶šĻ†¬† python docs¬† python basics¬† for python¬† pythonŚÖ•ťó®¬† python for beginners¬† https //www.python.org/¬† python documentation¬† python //¬† python coding¬† python code¬† pythonśēôÁ®č¬† python tutor¬† learn python¬† python install¬† www.python.org¬† python programming language¬† tutor¬† tutorialspoint¬† python online¬† python.org¬† pythonÁľĖÁ®č¬† tutorial¬† javatpoint¬† pythonŚģėÁĹϬ† python download¬† python basic programming for beginners¬† code step by step¬† tutorialspoint c programming¬† c programming.¬† basics of c programming¬† coding basics for beginners¬† coding online free¬† code learning¬† www tutorial point¬† get coding¬† coding course¬† basic code¬† learning programming¬† co.org¬† introduction to computer programming¬† computer programming basics¬† pc coding¬† codecademy uk¬† codeacademy uk¬† learning how to code¬† coding games online¬† coding sites¬† coding lessons¬† how to write code¬† coding basics¬† want to code and¬† c tutorial point¬† c language tutorial¬† play code.us¬† how to learn to code¬† basic coding¬† how to learn programming¬† coding for dummies¬† learn coding for free¬† how to do coding¬† learning to code¬† code.org play free¬† programming games¬† computer programming for beginners¬† codecademy free¬† learn programming¬† free coding¬† how to start coding¬† codding¬† coding website¬† how to code for beginners¬† coding academy¬† programming for beginners¬† codecademy.com¬† coding courses¬† coding class¬† codee¬† coding programs¬† how to program¬† free coding classes¬† c programming tutorial¬† tutorials point¬† learn how to code¬† free coding websites¬† hourofcode¬† c language tutorials¬† learn coding¬† how to learn coding¬† learn to code¬† codelearn¬† coding websites¬† coding for beginners¬† coding classes¬† codeacademy org¬† code .org¬† testingforschools/code¬† tutorials¬† what is coding¬† computer programming¬† c program¬† how to code¬† programming languages¬† c tutorial¬† code. org¬† code.org login¬† coding for kids¬† c programming language¬† .code¬† code org¬† code academy¬† c programming¬† .org¬† c c¬† org¬† programming¬† codes¬† hour of code¬† learn¬† coding¬† codecademy¬† code.org¬† code¬†¬†

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments