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
|
2842 Discussions
|
Please Login in order to post a comment
if name == 'main': N = int(input()) # Number of commands my_list = [] # Initialize empty list
if name == 'main': N = int(input()) # Number of commands my_list = [] # Initialize empty list
What I implemented in this problem: list methods, string split, data type conversion
Here's my code:
if name == 'main': N = int(input())
Python Solution
This solution uses switch statements.