0

What is a placeholder variable

Python

30th Aug 2021, 2:05 PM
Jalel Khadraoui
2 Respuestas
+ 2
If you mean variable placeholder, then it is a portion of a string denoted by curly brackets {} where the content of the bracket is supposed to be replaced with a variable's content. A bit of read: https://pytutorial.com/JUMP_LINK__&&__python__&&__JUMP_LINK-variable-in-string P.S. You accidentally posted this twice. Please undo the duplicate to help the community reduce duplicate questions 👍 https://www.sololearn.com/Discuss/2870008/?ref=app
30th Aug 2021, 2:23 PM
Ipang
+ 1
The placeholders in the template string are represented using curly brackets, {}. The placeholder can be empty {}, or it can have a variable for e.g {name} , or it can have a number index e.g {0} , {1} etc.
30th Aug 2021, 3:05 PM
Sacar
Sacar - avatar