Greetings, this is my first question in the forum.
First, I would like to thank all the contructsim team because all this courses and the simulations are helping me a lot in learning ROS, Python, and everything related to Robots.
My question is simple, I was making the exercise 2.5, and I wanted to introduce the sentence:
“The distance measured by the laser number {input1} is {input2}m”
I already managed to write it ussing commas as:
print (“The distance measured by the laser number “,number,” is:”,laser,“m”)
But I tried to write it using %d inside the string, but I only managed to write one of the variables, if I put two variables it recognizes it as a string. Im writing the sentence as:
print (“The distance measured by the laser number %d is %d m” %number , %laser )
Would anyone write the great line for me? Thanks a lot, and happy codding!