In C
:
for(int i=0; i<9; i+=2)
{
dosomething(i);
}
In python3
:
for i in range(0, 9, 2):
dosomething(i)
You just express the same idea in different languages.
More Related Contents:
- How to “perfectly” override a dict?
- How to override and extend basic Django admin templates?
- Good Python modules for fuzzy string comparison? [closed]
- How to get the input from the Tkinter Text Widget?
- Can I set max_retries for requests.request?
- Is python’s sorted() function guaranteed to be stable?
- Lambda function in list comprehensions
- What is the best (idiomatic) way to check the type of a Python variable? [duplicate]
- Adding a legend to PyPlot in Matplotlib in the simplest manner possible
- Display the output of the program on GUI with tkinter?
- Python (and Python C API): __new__ versus __init__
- How to use type hints in python 3.6?
- Matplotlib scatter plot with legend
- Why does a space affect the identity comparison of equal strings? [duplicate]
- Format certain floating dataframe columns into percentage in pandas
- Extract Values between two strings in a text file using python
- eval SyntaxError: invalid syntax in python
- ImportError: No module named ‘selenium’
- OpenCV install opencv_contrib on Windows
- Image.fromarray just produces black image
- How to decode a QR-code image in (preferably pure) Python?
- Sort by multiple keys using different orderings [duplicate]
- Bitwise XOR of hexadecimal numbers
- Python map object is not subscriptable [duplicate]
- Stop pip from failing on single package when installing with requirements.txt
- Matplotlib cannot find basic fonts
- What is the role of TimeDistributed layer in Keras?
- How to render by Vue instead of Jinja
- How to install and import Python modules at runtime
- permutations of two lists in python