How? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How?

How to do this?On every number you type every number gets dot or other symbol,and how to disable this?

8th May 2021, 11:34 PM
BG Plays
BG Plays - avatar
3 Answers
+ 1
Please use tags to let us know which language are you asking for, and specify your question. Where do you want this symbol to be? In front of the number, at the end or in the middle?
9th May 2021, 12:12 AM
Michal Doruch
0
End,and sorry i learning python 3
9th May 2021, 12:13 AM
BG Plays
BG Plays - avatar
0
The simplest way to do so is casting variable to string and adding this symbol. x=str(x)+'#' But remember that not every symbol can be added this way, sometimes backslash is required (for example if you want to put quotation mark, you have to make it "\' "). I'm not best in python but it looks like the easiest way to achieve your goal
9th May 2021, 12:22 AM
Michal Doruch