Write a Python program to assign values in variable as: Bookid=145,
Bookname= Information Technology, Price=539
Answers
Answered by
0
Program:
Bookid= 145
Bookname= "Information Technology"
Price =539
Explanation:
To assign a value to a variable you must use assignment operator i.e =
Keep the points in mind:
- To assign a number : write it as it is as in a=45
- To assign a text : write is surrounded by either single or double quotes as in a= "hey there"
- To assign another variable's value :write is as it is as in b=10 then a=b.
Similar questions