M
M
MarianaSE2017-08-09 01:35:34
Python
MarianaSE, 2017-08-09 01:35:34

How to display text and variables in a message?

Actually, there is a need to display this in the telegram message of the bot:

bot.send_message(message.chat.id, "Курс доллара на момент запроса - " ... currency.usd ... " USD")

Instead of "..." I don't know what to insert. I would be glad if someone can give me a hint. Thanks in advance ("%" - not working)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qlkvg, 2017-08-09
@MarianaSE

for completeness and new in python 3.6

bottles_number = 99
f"{bottles_number} bottles of beer on the wall."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question