Forwarded from Awesome Android Apps
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# to get notification from colab after running
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))
Forwarded from Smart Manoj-இன் பதிவுத்தடம் 😎
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 livereloadlivereload 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❤️✌🏻👍🏻
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 Smart Manoj-இன் பதிவுத்தடம் 😎
Postpone almost everything till Covid - Sign the Petition! http://chng.it/ShrGTw5P
Change.org
Sign the Petition
Postpone almost everything till Covid