Search This Blog

Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Monday, June 7, 2021

5- Arithmetic Operators

Python can operate with numbers using the usual mathematical operators, and some special operators, too.

πŸ‘‡πŸ‘‡πŸ‘‡Click Read more

Monday, May 24, 2021

4- Use Python as calculator

Python is a Calculator

I can hear you say, "All programming languages can calculate". But python does it in easy syntax.

5 plus 7 is 12, 13 times 15 is 195, 1 divided by 5 is 0.2. Easy. Repeating or periodic numbers are printed in a longer format. Let's try minus 2 divided by 3. In math theory, when 2 is divided by 3, the digit 3 repeats forever after the decimal point.  

πŸ‘‡πŸ‘‡πŸ‘‡Click Read more

Monday, May 17, 2021

3- Getting information from user

Input data

For a program to be useful it needs to get at least some information from the user. With this, the program can take actions that are relevant to the user, instead of generic actions, like printing "Hello world!".

You might provide additional data by passing strings these parameters to the program, or you could have the program ask you for data interactively.

πŸ‘‡πŸ‘‡πŸ‘‡Click Read more

Saturday, May 15, 2021

2-Hello Python

Hello World!

If you downloaded and installed Python software on your computer, it means you are ready to learn. 

Lets start to type codes and small programs.

First one is Hello world!

To display any text as message or information on the screen, you can just type the print function with the following signs and texts as below. 

print("Hello world!")

Then under this code, you will see the text as below.

Hello world!


Like the statement hello world for example, the print function is part of the basic Python language, whenever we use keywords or functions that are part of the language, we're using the programming language's syntax to tell the computer what to do. So what are functions and keywords?
πŸ‘‡πŸ‘‡πŸ‘‡Click Read more

1- Python Programming Language

What is programming?

At a basic level, a computer program is a recipe of instructions that tells your computer what to do

When you write a program, you create a step by step recipe of what needs to be done to complete a task and when your computer executes the program it reads what you wrote and follows your instructions to the letter. 

The recipe is written in a code called programming language. Programming languages are actually similar to human spoken languages since they have a syntax and semantics.

https://www.python.org/static/community_logos/python-logo-master-v3-TM.png

Why Python?

There are a few reasons. First of all, programming in Python usually feels similar to using a human language. This is because Python makes it easy to express what we want to do with syntax that's easy to read and write.

Secondly, Python makes it easy to express the fundamental concepts of programming like data structures and algorithms with easy to read syntax. This makes Python a great language to use to learn programming.

The other reason is to pick that Python is super popular in the IT industry, making it one of the most common programming languages used today. 

You can use Python to calculate statistics, run your e-commerce site, process images, interact with web services, and do a whole host of other tasks. 

Python is perfect for automation. It lets you automate everyday tasks by writing simple scripts that are easy to understand and easy to maintain. That's why Python is the language of choice for lots of people working in IT support, system administration, and web development.

History of Python

Its first version was released by Guido van Rossum back in 1991. Since then, the community that develops it has grown and the language has advanced a lot. Whenever there's a significant change to the semantics or syntax of the language, a new major version is released. In 2000, Python 2 was released. In 2008, we got Python 3. Python 3.7 came out in 2018

Which Operating Systems?

Python is available for download on a wide variety of operating systems, like Windows, Linux, and Mac OS.

Source: Crash Course on Python in Google IT Automation with Python Professional Certificate

Installation of Python

We are suggesting to download Python from their original website.

https://www.python.org/downloads/