SHARE
TWEET

main.py

a guest Mar 20th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from flask import Flask
  2. import json
  3.  
  4. app = Flask(__name__)
  5.  
  6.  
  7. @app.route('/')
  8. def home():
  9.     response = 'Bool!'
  10.     list = ['Gabriel', 'Heloisa', 'Thallis', 'Will', 'Marcinho', 'Cleiison']
  11.     nomes = []
  12.     for nome in list:
  13.         nomes.append(nome)
  14.         for letra in nome:
  15.             print(letra)
  16.         print(nome)
  17.     print(nomes)
  18.     return json.dumps(list, indent=4)
  19.  
  20.  
  21. if __name__ == '__main__':
  22.     app.run()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top