Відповідь:
Here is a Python program to do what you asked for:
from instabot import Bot
bot = Bot()
accounts = []
followers = []
# Get names of 3 accounts from user
for i in range(3):
account = input('Enter name of account {}: '.format(i+1))
accounts.append(account)
# Get followers count of each account
for account in accounts:
followers.append(bot.get_followers_count(account))
# Find account with most followers
max_followers = max(followers)
max_index = followers.index(max_followers)
# Print result
print('The account with most followers is {} with {} followers'.format(accounts[max_index], max_followers))
If something is wrong, write in the comments, I will correct the answer
Have a nice day!!!
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Відповідь:
Here is a Python program to do what you asked for:
from instabot import Bot
bot = Bot()
accounts = []
followers = []
# Get names of 3 accounts from user
for i in range(3):
account = input('Enter name of account {}: '.format(i+1))
accounts.append(account)
# Get followers count of each account
for account in accounts:
followers.append(bot.get_followers_count(account))
# Find account with most followers
max_followers = max(followers)
max_index = followers.index(max_followers)
# Print result
print('The account with most followers is {} with {} followers'.format(accounts[max_index], max_followers))
If something is wrong, write in the comments, I will correct the answer
Have a nice day!!!
Module 'instabot.py' not found