Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
23 views

Python 101

How to code python

Uploaded by

Ralph Seminiano
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Python 101

How to code python

Uploaded by

Ralph Seminiano
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Introduction to

Python
Python Features
● It is easy to learn and has clear syntax.
● Python is free, open-source, and cross-platform.
● It is an object-oriented programming language with high
readability and reliability.
Code Comparison
Printing in Python: Printing in C++:

print("Hello, World!") #include <iostream>

using namespace std;

int main() {

cout << "Hello World!";

return 0;

}
Code Comparison
Loops in Python: Loops in C++:

for x in range(6): #include <iostream>

if x == 3: break using namespace std;

print(x) int main() {

else: for (int i = 0; i <= 10; i = i + 2) {

print("Finally finished!") cout << i << "\n";

return 0;

}
Python Features
● Python is easier to learn
● Python is also widely used in different industries
● Python can be a good foundation for students who wish to learn programming on the industry level.

You might also like