Skip to content

How to separate a string or int with comma in Python?

 string = input('Input')
    >>> 1,2
    >>>['1', '2']
See also  Python code snippet - How to add to the end of an array ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.