Closed gpk2000 closed 4 years ago
In this code below you forgot to add f at the beginning of the second string
f
It should be
# Sample predictions for i in range(10): print(f"{i+1}. Car name: {cars[i]}, MPG: {y[i]}, " + f"predicted MPG: {pred[i]}")
Notice the f before predicted.
You are right! Thanks.
In this code below you forgot to add
f
at the beginning of the second stringIt should be
Notice the
f
before predicted.