Spot the error python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Spot the error python

temperatures={ ‘ New York’:105} if ‘New York’ in temperatures: if temperatures [‘New York’]>90: print(‘The city is melting’) else: print(‘The temperature in New York is’, temperatures [‘New York’]) else: print(‘The temperature in New York is unknown’)

24th Feb 2019, 5:39 AM
Safina Nganga
Safina Nganga - avatar
3 Answers
24th Feb 2019, 6:06 AM
Arushi Singhania
Arushi Singhania - avatar
0
you mean the single quotes?
24th Feb 2019, 5:58 AM
Safina Nganga
Safina Nganga - avatar
0
alright thank you so much.
24th Feb 2019, 6:08 AM
Safina Nganga
Safina Nganga - avatar