filmov
tv
String Format - Python Tutorial - w3Schools - Ch#13 English
Показать описание
we can combine strings and numbers by using the format() method!
The format() method takes the passed arguments, formats them, and places them in the string where the placeholders {} are.
The format() method takes unlimited number of arguments, and are placed into the respective placeholders.
You can use index numbers {0} to be sure the arguments are placed in the correct placeholders.
The format() method takes the passed arguments, formats them, and places them in the string where the placeholders {} are.
The format() method takes unlimited number of arguments, and are placed into the respective placeholders.
You can use index numbers {0} to be sure the arguments are placed in the correct placeholders.