How to query an input in Python without outputting a new line (cont.)

Posted by Waterfox on Stack Overflow See other posts from Stack Overflow or by Waterfox
Published on 2010-06-06T04:29:29Z Indexed on 2010/06/06 4:32 UTC
Read the original article Hit count: 203

Filed under:
|

I already posted this, but here is the exact code:

x1 = input("")
x2 = input("-")
x3 = input("-")
x4 = input("-")

So, how would I do it so that there are no spaces between the first input and the next "-"?

Example:

1234-5678-9101-1121

© Stack Overflow or respective owner

Related posts about python

Related posts about python-3.x