1. Learning Curve and Code Readability
Firstly let’s take a look at Java syntax to add two numbers…
Now let’s see how to write the same code in Python…
Firstly let’s take a look at Java syntax to add two numbers…
class AddNums () { public static void main(String args[]) { int first = 1; int second = 2; int sum = first + second; System.out.println(sum); } } |
Now let’s see how to write the same code in Python…
first = 1second = 2sum = first + second print(sum) |
تعليقات
إرسال تعليق