Discover
Communities
Decks
Login
Discover
Communities
Decks
Buy perks
Login
Signup
Topics
New
Trending
Hot
New
New
Friends
Trending
Hot
New
Controversial
Rising
Promoted
forloop
mimiming
load0file0r
6y
R basic, 'for loop' Calculating Leap Year
Logical meaning & - > and | - > OR ! - > Not > for(year in 2000:2018){ + if (year%%4==0 & year%%100!=0 | year%%400==0){ + result <-
$ 0.000
2
ijmmai
php
7y
Common programming mistake using for()-loop
Most programming languages have an implementation for the for()-loop. In subcode it looks like: for ( counter; condition; counterchange) { // do something } An actual code snippet in PHP would look like
$ 0.000
0
rahim.rahman
python
7y
Grammar of a programming language - A look into Python (Part 2)
Writing up the codes within a new File Up until now, we have only been using IDLE's main window to write codes. This is totally fine for simple tasks but will be a nuisance once the codes are long and
$ 0.025
5
3
Top communities
Center