0
Python change input
How do I get a user input and change what it is, for example: Input: 1.3 Change to: 13
2 Respostas
+ 3
There are a lot of things you can do with strings, and I see that you have already done a bit of it in your codes. What exactly is your plan?
For this example you could go with indexing and concatenation, sth like:
string[0]+'.'+string[1]...
+ 1
I got a robotic arm and want to write a code editor to replace the block editor. The arm takes seconds without the decimal though so 1.2 seconds would be 12 to the machine. But now I've written that I realize I could multiply by 10... Thanks anyway :)