Python X 🐍
42 subscribers
25 photos
2 videos
9 files
188 links
Download Telegram
def hello():
return 'hello 2045'


Changing to

def hello:
'hello 2045'

# indentation only thru tabs
TG_TOKEN=
tid=
text=
!pip install python-telegram-bot
from telegram import Bot
bot= Bot(TG_TOKEN)
async def send_message(text):
try:
await bot.send_message(tid,text)
except Exception as e:
print(e)
print('send message failed')
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(send_message(text))

# to get notification from colab after running
Python X 🐍
livereload==2.5.1 Bug free version #random_module
from flask import Flask, request, render_template, url_for,send_file,send_from_directory
app=Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')

if __name__ == '__main__':
from livereload import Server
app.debug = 1
server = Server(app.wsgi_app)
server.serve()
#snippet |flask with livereload
livereload works only if it is a valid html file
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>
</html>
Master Python & Build a Face Recognition App
With Zero Prior Coding Experience

Register for the ‘AI for India 1.0’ - The Online workshop that is first of its kind which will help anyone Master Python, Be it a school kid, fresh graduate or an experienced professional.

🔥417622 Participants Registered 🔥


🔰Enrollment Link:--
https://bit.ly/3eomCGJ

Enjoy❤️✌🏻👍🏻
Forwarded from Programmer Jokes