000001 Lecture : Python Variables

12 views2 pages
20 Mar 2023
Department
Course
Professor

Document Summary

In other words, a variable point to an object. of a variable, and the right side should be a value: the following assigns a name to an integer value. >>> num=10: now, you can refer 10 using a variable name num, as shown below. >>> print(num * 2) # multiply and display result. 20: check the type of a variable using the type() function. In the same way, the following variable points to a string value.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions