Question: Questions: 1 . What is the data type ( int , float, or str ) of the following values?Note: if you're unsure, use the type

Questions:
1. What is the data type (int, float, or str) of the following values?Note: if you're unsure, use the type function in a Python Shell.)
a) pi
c) word
b) integer
d) number
2. List the function calls that convert a value to a new data type.
3. How does the behavior of the operators (+and *) depend on the data type?
4. What is the difference between the int function and the round function?
5.What is the value of 3+3+3? What is the value of .3+.3+.3? If you enter these expressions into a Python Shell, what do you notice about the results?
6. In order to store a number with 100% accuracy, what data type is required? How might you precisely represent a bank account balance of $123.45?
7.Try calculating a very large integer in a Python Shell, for example, 123^(456). Is there a limit to the integers that Python can handle?
8. Try calculating a very large floating-point number in a Python Shell, for example, 123.0^(465).Is there a limit to the floating-point numbers that Python can handle?
9. Summarize the difference between the numeric data types (int and float). What are their pros and cons?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!