Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how do you define a variable and assign a value to it in python

+2 votes
asked Jan 23 by ISHWARBHAI AMARABHAI RABARI (140 points)
how do you define a variable and assign a value to it in python

1 Answer

0 votes
answered Jan 27 by Mohd Zia (190 points)

You can define and assign a variable in python 

for example name of your variable  x = 5

x is a variable here and = is a assignment operator which assigns value to variable

you can also define multiple variables in single line

a,b,c = 1,2,3

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...