We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Basic Data Types
- Lists
- Discussions
Lists
Lists
Sort by
recency
|
2802 Discussions
|
Please Login in order to post a comment
if name == 'main':
here taking the user_input - insert 1 5 and coverting this to ['insert', '1', '5'] using split() and hence using indexing
if name == 'main': N = int(input()) my_list = []