if check.find(name) != -1:
bot.send_message(message.chat.id, articlerbc.a['href'] + f' Связанная новость с {name}',reply_markup=key_user)
elif check2.find(name) != -1:
bot.send_message(message.chat.id, articlerbc.a['href'] + f' Связанная новость с {name}',reply_markup=key_user)
if name in check or name in check2:
bot.send_message(message.chat.id, articlerbc.a['href'] + f' Связанная новость с {name}',reply_markup=key_user)
test = list('python test')
num = 0
string = ''
while num < len(test):
string = string + test[num]
num += 1
print(test, '\n', string)
test = list('python test')
string = ''
for element in test:
string = ''.join([string, element])
print(test, '\n', string)
string = ''.join(test)
print(test, '\n', string)
print(test, '\n ', *test, sep='')