Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

one line input in python

num1, num2 = map(int, input().split())
Comment

input in one line python

a, b = [int(x) for x in input().split()]
print(a+b)
Comment

PREVIOUS NEXT
Code Example
Python :: how to create a set from a list in python 
Python :: python cli click 
Python :: strftime python multiple formats 
Python :: if name == main 
Python :: get last 3 elements in a list python 
Python :: python generate list 
Python :: function for detecting outliers in python 
Python :: delete element list python 
Python :: numpy savetext 
Python :: smtplib send caleneder email 
Python :: how to print correlation to a feature in pyhton 
Python :: run python file from another python file 
Python :: python get substring between strings 
Python :: python how to turn a word into a list 
Python :: how to add a value to a list in python 
Python :: torch flatten 
Python :: python extract list from string 
Python :: relative import in python 
Python :: python if string contains substring 
Python :: adding text cv2 
Python :: python tkinter cursor types 
Python :: connect snowflake with python 
Python :: how to call a random function in python 
Python :: how to enter a int in python 
Python :: how to select rows with specific values in pandas 
Python :: python remove empty values from list 
Python :: pandas change period to daily frequency 
Python :: traversing a tree in python 
Python :: list comprehension python if else 
Python :: python string trim 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =