Turn an array of strings with a for statement (Python3)

I couldn't find such a basic thing unexpectedly, so make a note

data = ["hoge", "fuga"]

for i in range(len(data)):
    print(data[i])

Postscript This seems to be more common > < Thank you Higashino Sola

data = ["hoge", "fuga"]

for s in data:
    print(s)

Recommended Posts

Turn an array of strings with a for statement (Python3)
Python: Get a list of methods for an object
Turn multiple lists with a for statement at the same time in Python
[Introduction to Python] How to get the index of data with a for statement
[Python] What is a with statement?
How to convert an array to a dictionary with Python [Application]
I made a lot of files for RDP connection with Python
The story of making a standard driver for db with python.
What I did with a Python array
[Introduction to Udemy Python3 + Application] 47. Process the dictionary with a for statement
Explanation of creating an application for displaying images and drawing with Python
[AtCoder] Solve A problem of ABC101 ~ 169 with Python
[Python] Make a game with Pyxel-Use an editor-
Get a ticket for a theme park with python
Create a LINE BOT with Minette for Python
Procedure for creating a LineBot made with Python
Solve A ~ D of yuki coder 247 with python
Commands for creating a python3 environment with virtualenv
Output in the form of a python array
Searching for an efficient way to write a Dockerfile in Python with poetry
Python basics ② for statement
python: Tips for displaying an array (list) with an index (how to find out what number an element of an array is)
[Python] for statement error
A memo connected to HiveServer2 of EMR with python
Add the attribute of the object of the class with the for statement
Recommendation of building a portable Python environment with conda
Summary of tools for operating Windows GUI with Python
Building an environment for natural language processing with Python
When writing an if statement with a regular expression
Create a Layer for AWS Lambda Python with Docker
[python] Create a date array with arbitrary increments with np.arange
[Python] I want to use only index when looping a list with a for statement
Python memo (for myself): Array
Quicksort an array in Python 3
Python list, for statement, dictionary
[Python] How to make a list of character strings character by character
A collection of competitive pro techniques to solve with Python
Recommendations for django, wagtail ~ Why develop a website with python ~
Create a child account for connect with Stripe in Python
[For beginners] Summary of standard input in Python (with explanation)
Simulation of late damages for child support delinquency with python
Search for strings in Python
Experiment to make a self-catering PDF for Kindle with Python
Can be used with AtCoder! A collection of techniques for drawing short code in Python!
Get a list of purchased DMM eBooks with Python + Selenium
How to define multiple variables in a python for statement
How to make a Python package (written for an intern)
Detect objects of a specific color and size with Python
A story about an amateur making a breakout with python (kivy) ②
I created an environment for Masonite, a Python web framework similar to Laravel, with Docker!
A sample for drawing points with PIL (Python Imaging Library).
Create a Twitter BOT with the GoogleAppEngine SDK for Python
Make a fortune with Python
A story about an amateur making a breakout with python (kivy) ①
[Python / PyQ] 4. list, for statement
Get a list of CloudWatch Metrics and a correspondence table for Unit units with Python boto
Create a 2D array by adding a row to the end of an empty array with numpy
Library for specifying a name server and dig with python
Create a directory with python
I tried a stochastic simulation of a bingo game with Python
[Python] Create a screen for HTTP status code 403/404/500 with Django