Friday, June 7, 2024

Variables Name

 myvar = "Python"

my_var = "Python"

_my_var = "Python"

myVar = "Python"

MYVAR = "Python"

myvar2 = "Python"



print(myvar)

print(my_var)

print(_my_var)

print(myVar)

print(MYVAR)

print(myvar2)


Output:

Python

Python

Python

Python

Python

Python


Python Variables

 x = 5

y = "Python"
print(x)
print(y)

Output:

5
Python

Python Comments

 #print("Hello, World!")

print("Hello, Python")

Hello World Print

 print("Hello World!")

Setting up Python

 

Setting up Python

Why Python?

 

Why Python?

  • Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
  • Python has a simple syntax similar to the English language.
  • Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
  • Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
  • Python can be treated in a procedural way, an object-oriented way or a functional way.

Variables Name

 myvar = "Python" my_var = "Python" _my_var = "Python" myVar = "Python" MYVAR = "Python" m...