DEV Community

Discussion on: Which programming language has the prettiest syntax?

Collapse
 
_umairali_ profile image
Umair Ali ✳️

Given below is for loop syntax to ‘print 1 to 10 numbers’ in 4 different Programming languages:

1

JAVA for(int i=1;i<11;i++){ System.out.println(i);
}

2

Python for x in range(1,11):
print(x)

3

Kotlin for (i in 1..10) {
println(i)
}

4

Swift for i in 1...10 {
print(i)
}

You are required to calculate points of each language on the basis of the following aspects:

  1. Readability
  2. Reliability
  3. Cost/Programming effort You have total of 30 points for each language.10 points for each aspect based on your opinion. Scale: 1 point lowest and 10 highest