Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions