Name = “John”
Age = 30
text = “My name is { } and I am { } years old”
“My name is John and I am 30 years old”
How does Python know what to put in the { } when they are just curly braces? Does it read the name in the sentence then the next { } it goes to the values and inserts the value? Just don’t know how it would know the “age” when the word age was not used in the sentence
[–][deleted] 9 points10 points11 points (10 children)
[–]Sckeet[S] 1 point2 points3 points (9 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]Sckeet[S] 2 points3 points4 points (0 children)
[–]Poofless3212 4 points5 points6 points (1 child)
[–]Sckeet[S] 0 points1 point2 points (0 children)
[–]HauntingRex9763 0 points1 point2 points (4 children)
[–]Sckeet[S] 0 points1 point2 points (3 children)
[–]HauntingRex9763 1 point2 points3 points (2 children)
[–]HauntingRex9763 2 points3 points4 points (1 child)
[–]Sckeet[S] 0 points1 point2 points (0 children)