Sunday, August 27, 2017

Python - Beginning Programming

Decision Making
If Else;
Open your IDE say Pycharm.
write:
x=5
 y=10
if x>y:
print("This is wrong")
else:
print("This is right")

You can try this of your own. 




  

Saturday, August 26, 2017

Python - Downloading IDE

To begin with actual programming, you have to download a python text editor or IDEs that makes our tasks easier to perform. There are many such IDEs like
  1. wing IDE
  2. ERIC
  3. Pycharm(recommended)
  4. PyDev
  5. Spyder etc.
I prefer you to use PyCharm.
To download PyCharm:
go to: https://www.jetbrains.com/pycharm/download/
download Community version and install it.

Friday, August 25, 2017

Python Progarm-String

We can work with strings also in Python.
The common syntax is:
print("Hey! This is Bhatta's Python Hub");

Every Students have the problem with single quotation (') and double quotation (").
For example:
print('Hey it's Python hub'); try this
This will detect  highlighted part only as a string.


I hope you are clear from these examples. You should try yourselves to learn more!!

First Python Program-Numbers

To begin the python programming, fire your Python!!

You will see:












Now lets begin with
  1. Numbers
    We can use python directly as a calculator.
    >>>2+3
    5
    >>>6/2
    3
    You can try of your own.

Starting with Python Programming!

You are in this blog means you are new to python programming. Python is a open-source programming language. You can download it for free from python.org.  You can use various IDE (Integrated Development Environment) to learn python easily. But to be a great programmer it is better to start from scratch(i.e. like command prompt).

What Python can do?

As I have already mentioned, you can do almost anything with python.
  • DJANGO - best web development framework ( like PHP ).
  • KIVY - best mobile application development for both android and IOS.
  • Data science
  • Data mining
  • Hacking
  • Networking
  • Security
  • Games. Usually Mobile games, and small 2D-games.
  • Operating systems
  • Basically any thing that offers an API, which is about 98% of the internet.
  • Science. Chemistry, Physics, astronomy, etc.

Thursday, August 24, 2017

What is Python?

Python is a general purpose programming language. It can be used as scripting language as (PHP) and can be compiled as JAVA,C++. Except 3D gamings, you can almost do anything with python. Python is simple and easy to learn.