Jorell_Ramos_Sinaga

Untitled

Sep 19th, 2021
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. a - int(input())
  2.  
  3. dictionary = {
  4.     61:'Brasilia',
  5.     71:'Salvador',
  6.     11:'Sao Paulo',
  7.     21:'Rio de Janeiro',
  8.     32:'Juiz de Fora',
  9.     19:'Campinas',
  10.     27:'Vitoria',
  11.     31:'Belo Horizonte'
  12. }
  13. if a in dictionary:
  14.     print(dictionary[a])
  15. else:
  16.     print('DDD nao cadastrado')
Advertisement
Add Comment
Please, Sign In to add comment