Skip to content

TypeScript code snippet – How to trake muyltiple inputs in same line in python?

x, y = [int(x), int(y)]

# We can also use  list comprehension
x, y = [int(x) for x in [x, y]]
See also  Python code snippet - How to append element ?

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.