Question: 1. import sys What does this line of code do? 2. sys.getsizeof(object) what does the following method do? 3. Place python source code in your

1. import sys What does this line of code do?

2. sys.getsizeof(object) what does the following method do?

3. Place python source code in your shell and test.

data = 10

sys.getsizeof(data)

data = 100000

sys.getsizeof(data)

data = 100000000

sys.getsizeof(data)

what happens when you run the above code?

data = 10.0

sys.getsizeof(data)

data = 100000.5

sys.getsizeof(data)

data = 100000000.5

what happens when you run the above code?

4. Please describe the why floats and doubles in Python or so much larger than floats or doubles in C++

5. what are the difference between convention, gray and syntax?

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!