Posts by leandro lávila • 39 points
2 posts
-
0
votes3
answers16658
viewsA: How to round up with Python?
I was having the same doubt and I parachuted in here about the code above: x = x + (1 if x % int(x) else 0) This case works very well in most cases , but when we test with a generic 'P' entry…
-
3
votes3
answers114
viewsQ: Reading undesirable characters - Python
A way to separate words from a string provided as in the method below: entrada = input().split(" ") Doubt: If I want to exclude more than one specific character (" ,&ˆ*!!:") not necessarily in…