fb pixel

tuple assignment

What will happen when running the following code:
heights = (190, 180, 160, 200)
heights[1] = 190
print(heights)
Options:
  1. This will result in an error
  1. Will print (190, 180, 160, 200)
  1. Will print (190, 190, 160, 200)
 
To check your solution you need to sign in
Sign in to continue