Computer Science, asked by jiteshsharma19, 4 months ago

Write a Python program to assign values in variable as: Bookid=145,

Bookname= Information Technology, Price=539​

Answers

Answered by allysia
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