LogoHeader

 

Programming Python


The for/ while loops are still the only way to “Loop” back and do something over and over.


An Example of each:

while x = true:

for a in range(100):


The if/ else if/ else statements are pretty much the exact same as in JavaScript.


Example:

if x = false:

elif x = true:

else:


Now the var statement has been removed in Python because it automatically tells when there is a variable.


Example:

x = true

a = [“Hello”,1,true]


As you have probably seen above after every command you no longer need to put a ;.


While Python seems to be a better way to make programs it really all comes down to your preference between this and JavaScript.

Top

Description:

Python is another one of the best programing languages you can find, and is extremely familiar to JavaScript. The only difference between them is that Python is easier to code.