Question: Q 1 . Creating variables ( 6 pts . total ) In this first part of the problem set, your goal is to create variables

Q1. Creating variables (6 pts. total)
In this first part of the problem set, your goal is to create variables of different types, with different values.
In the cell below, create the following variables (make sure to use the right name for each variable):
A variable called my_int that stores the number 42.
A variable called my_int2 that stores the number 45.
A variable called my_str that stores the string "Problem Set 1".
A variable called my_bool that stores the boolean value True .
A variable called my_other_bool that stores the (boolean) result of checking whether my_int > my_int2.
A variable called my_nothing that stores None.
In [1]:
# YOUR CODE HERE
myint=42
In [2]:
assert my_int
assert my_int ==42
In []: assert my_int2
assert my_int2=45
In []: assert my_str
assert my_str == "Problem Set 1"
In []: assert my_bool
assert my_bool == True
In []: assert my_other_bool == False
In []: assert my_nothing is None
 Q1. Creating variables (6 pts. total) In this first part of

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!