From bf36259770daa964b72abdd3f9deef76b861f2f5 Mon Sep 17 00:00:00 2001 From: mayank6 Date: Mon, 13 May 2019 04:31:33 +0530 Subject: [PATCH] Added a way to get multiple inputs (#31684) --- guide/english/python/input-functions/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guide/english/python/input-functions/index.md b/guide/english/python/input-functions/index.md index da6338db56..212ccb6793 100644 --- a/guide/english/python/input-functions/index.md +++ b/guide/english/python/input-functions/index.md @@ -60,4 +60,9 @@ By default, inputs are stored as 'strings'. Therefore, we can use the `map()` fu NOTE: Inside the `split()` function, we can add the separator used to split and identify chunks of data to be stored separately. For example, if we want to separate each value by a comma, we write `input().split(",")` and so on. +7\. Multiple comma seperated integer inputs in list: +``` +LIST=[int(x) for x in input().split(",")] +``` +Multiple integers can be stored by iterating whole given string by comma seperated and store in a list. Official Docs