What is Pycharm | Basic about python -Technical Teacher

About Python?

Python is high level programming language.

In python, few line of codes. So that, you can learn python easily.

It was developed by Guido van Rossum and released in 1991.

                                                         

                                                             

                                                              Guido van Rossum

 

 

It can be used for developing software and web applications.

Example:

Some calculation in python are described here, with some differences-

Example 1

 

>>>4+3*10              and                   >>>(4+3)*10

34                                                          70

 

Example 2-

>>>22/4     and                                  >>>22//4

5.5                             5(it gives exact integer value)

 

-If we want to print any same string more than one time we use *n

Like an  Example,

>>>firstName= ”YourTechnicalTeacher “

>>>firstName *3

Output:

YourTechnicalTeacherYourTechnicalTeacherYourTechnicalTeacher

 

Python Indentation:-

In Python, white-spaces are most important. White-spaces at the beginning of lines are called Python Indentation.

If you are not using proper indention in python then it gives, following error that is-

IndentationError: unexpected indent

We can also provide indentation after writing the code in Pycharm by selecting the code and press Shift+Ctrl+Alt+L.

 

What is Pycharm?

Pycharm is IDE used in computer programming and used for python language.

It is developed by JetBrains.

 

Use of Range() Function in Python:

We can use range()  function for a sequence numbers and it provides starting from 0 by default and incremented by 1 and up to -less than 1 value from range() function.

Like Example,

 

for x in range(5):

print(x)

 

Output:

0

1

2

3

4

 

Example:

for x in range(8,25,4)

print(x)

Output:

8

12

16

20

24

I mentioned both result for range functions-

 

 

 

 

I hope you will understand basics for python and it helps you in interview question and answer. I meet you in next article.

Thank you!!

  

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *