Answers for "how to take multiple string input in python"

3

taking multiple input in python

only_str = input().split() #only str
define_type = list(map(int, input().split())) #int, float, str
Posted by: Guest on February-21-2021
2

input two numbers in python in a single line

inputs = []for i in range(3):  # loop 3 times	inputs.append(input())
Posted by: Guest on May-09-2020
1

how to take input of something in python

name = input("What is your name? ") 
print("Hi, " + name)
Posted by: Guest on December-30-2019
0

how to input a full array in one input in python

n = int(input())
arr = input()   # takes the whole line of n numbers
l = list(map(int,arr.split(' '))) # split those numbers with space( becomes ['2','3','6','6','5']) and then map every element into int (becomes [2,3,6,6,5])
Posted by: Guest on May-02-2020

Code answers related to "how to take multiple string input in python"

Python Answers by Framework

Browse Popular Code Answers by Language