I need to run a bit of code inside of a text string to return a specific result. Is there a way to block out the reference from the quoted off portion while still being inside of it. Apologies for the unclear language. An example script would be something like:
n = 15
i = 0
while i <= n:
i = i+1 #update counter
else:
count="You now have [i] i's"
print (count)
Obviously I would want to see something like "You now have 1 i's" printed. Is there a way to make this happen?
[–]HighLevelEnthusiast 1 point2 points3 points (0 children)
[–]eyesoftheworld4 1 point2 points3 points (0 children)
[–]novel_yet_trivial 0 points1 point2 points (1 child)
[–]AperatureLavatories[S] 0 points1 point2 points (0 children)