0

Spot the error in python coding.

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, 3:30 AM
Safina Nganga
Safina Nganga - avatar
1 Odpowiedź
+ 4
got them! temperatures={'new york':105} if ('new york' in temperatures): if temperatures['new york']>90: print('The city is melting') elif temperatures['new york']<90: print('The temperature in New York is', temperatures['new york']) else: print('The temperature in New York is unknown') if you want the code: https://code.sololearn.com/ch9sYyEtHwmt/?ref=app
19th Sep 2019, 2:49 PM
sujay simha
sujay simha - avatar