- 3
How to delete a certain character(#) when entering?
For example: I entered #20 The program should delete # and print 20
2 odpowiedzi
+ 6
You didn't provide any attempts in any of your posts, we don't do homework, show us what you did before you post anything related to a problem in programming, thanks!
0
When you enter a values like this, it's string, so you can delete certain char by using `replcae()` and convert it to an integer by `int()` like this:
**************************
value = input()
value = value.replace("#", "")
number = int(value)
print(number)
**************************
If you enter `#20` as value it prints `20` as output.