If you’re having trouble keeping track of the variables’ val…
If you’re having trouble keeping track of the variables’ values throughout this problem, we recommend entering the current value into the fill-in-the-blank box, and then updating it as you work through the lines of code. 1| my_var = 2 2| my_var = my_var * 4 3| my_var = my_var // my_var 4| my_var = my_var * 2 5| my_var = my_var + 5 6| my_var = my_var ** 2 7| my_var = my_var // 10 What is the value of my_var when the code above is done executing? [blank1] 1| my_var = 1 2| my_var *= 8 3| my_var //= my_var 4| my_var *= 4 5| my_var += 3 6| my_var **= 2 7| my_var //= 10 What is the value of my_var when the code above is done executing? [blank2] 1| my_var_1 = 3 2| my_var_2 = -1 3| my_var_1 *= my_var_2 4| my_var_2 += my_var_1 5| my_var_1 *= my_var_2 6| my_var_2 -= my_var_1 What is the value of my_var_1 when the code above is done executing? [blank3] What is the value of my_var_2 when the code above is done executing? [blank4]
Read DetailsEnter the result of (that is, what would be printed by) each…
Enter the result of (that is, what would be printed by) each of the following Python expressions. Note that type matters: if the result is a float, you should write the answer as 1.0 instead of 1. If the result is an integer, you should write it as 1 instead of 1.0. Be careful with your orders of operations. If an expression will cause Python to return an error, enter “Error” (without quotation marks). If the result is a string, you may enter it with or without quotation marks. 15 // 3 + 3 [blank1] 19 % 4 [blank2] 5 ** (4 – 2) [blank3] 8 + float(“3”) [blank4] 5 ** 3 == 5 * 5 [blank5] 25 // 6 + 1 [blank6] “4.0” == 16 / 4 [blank7] 6 / 3 [blank8] str(10 + 1) = “101” [blank9] 4 * “7” [blank10] 11 // 5 [blank11] float(13) + int(3) [blank12] 2 * “5” * 4 [blank13] “b” + “a” * 3 + “n” * 2 == “banana” [blank14] 9 * “8” * “7” [blank15] “aahh” + “ha” * 6 [blank16]
Read Details