How to check if a number is even?
📁 Advanced Python Topics
I understand that you need to divide by 2 and check the remainder. Here's what I tried to do.
if ( not line%2 ): print 'chek true' Yes, it's possible, I'll attach my script that handles this task,
I'll also attach the code here with explanations, in case the repository is deleted:
Make the necessary imports:
import sysfrom getpass import getpassfrom time import sleep# pip install telethon==0.11.5from telethon import TelegramClientfrom telethon.errors import SessionPasswordNeededErrorfrom telethon.errors.rpc_errors_400 import UseameNotOccupiedErrorfrom telethon.errors.rpc_errors_42 Log in to leave an answer
Blogs