Prerequisites

You should know python's basic syntax. You should have Python installed on your machine. In this article, we will know more about

  • What can you do with python?
  • How to learn Python?
  • What is the time to learn Python
  • How much python programmers make

What can you do with Python?

Python is a general-purpose language. You can use it with any kind of application. You can use it as a scripting language to solve some of your daily problems.

Scripting with Python

Let's take an example. If you're like photography, you probably have an issue of image naming. After a long day of shooting, you came back to your studio. You filtered the images and put the selected images to a directory. This directory contains different images with different names. You need to make your work easier by naming all images with a specific format. Let's say the image name will consist of the place name and sequence numbers. This makes it easy for you to search for images. By using Python you can create a simple script that will go through all files with type JPEG in this folder and rename it.

sort images with python

Unsorted images

Let's see an example:

import os 

def main():
    path = input("Enter folder path: ")
    folder = os.chdir(path)

	for count, filename in enumerate(os.listdir()): 
		dst ="NewYork" + str(count) + ".jpeg"
		os.rename(src, dst) 

if __name__ == '__main__':
	main()

As you can see Python is an efficient tool for automation. It helps drive your focus to important things.

What else you can do with Python? You can have an FTP server with python. Using the command

python3 -m http.server 8000

You can run a python server. The server will be accessible over your local network. You can open your browser from a different device. Type your network ip : 8000 . You will have access to all files in this folder. You can use it to transfer files from different devices in the same network.

Such a simple usage of Python in your daily life will make it easier. Talking about servers that leads us to

Python usage in web-based applications

Python is very popular in web development with frameworks like Flask and Django. If you want to build your own eCommerce store. You can use the Django framework. After installing it you will have a ready project structure to build your website. Let's see how easy it is to install Django.

# checking django version 
$ python -m django --version

# if you don't have django installed you can install it using pip
$ python -m pip install Django

Note: if didn't have pip installed you should follow our article for installing it.

After installing Django Now you can create your project.

$ django-admin startproject my-eCommerce-Website

You will have a project structure like below

my-eCommerce-Website/
    manage.py
    my-eCommerce-Website/
        __init__.py
        settings.py
        urls.py
        asgi.py
        wsgi.py

To proceed with the Django project. You should install your project applications

$ python manage.py startapp store

Inside your Django project, you would have all your apps. Each app will have a different folder.

my-eCommerce-Website/
    manage.py
    my-eCommerce-Website/
        __init__.py
        settings.py
        urls.py
        asgi.py
        wsgi.py

You can learn more about Django in their official documentation. You can that getting started with Python for web development is pretty easy.

Python has different usage in different fields Like Data science, game, and mobile development. we talked in detail about it in the previous article.

How to learn Python?

Learning Python is a continuous process. Some people prefer Courses, Others prefer hands-on experience. It really doesn't matter the source you will learn from. You will need to apply what you learned to build useful Python applications. We've talked in our previous article about the various resources to learn it. check it here. If you already know it's basic syntax. Your focus now should be on learning how to build python's applications.

It depends on the type of application you want to build.  If you're looking for building a web-based application. The recommendations will be Flask And Django.

Wher you can learn Flask?

In all the above resources, you'll build a Flask application. That will give you hands-on experience with Flask.

Wher you can learn Django?

  • Django documentation is a detailed resource of learning Django. With it's starting guide.
  • Django is the most popular Python framework. Coursera has created a full specialization to learn it.
  • The tutorial point has created an organized source to learn Django. It's called the Django tutorial.

Again it doesn't matter what is the source. You need to try writing code and build a project by yourself. It'll help you build your portfolio.

If you're looking for building machine learning projects. Udacity and Coursera are great resources to learn it.

Where you can learn Machine Learning?

  • Udacity has an introductory course on machine learning. It'll guide you through machine learning and artificial intelligence.
  • Stanford has a great course too on Coursera to learn machine learning. It's presented by Andrew Ng. He is one of the tops in Machine learning and AI fields.
  • If you're prefer reading. The Tutorial point has a tutorial about Machine learning. It'll give you the needed knowledge to know more about Machine learning.

What is the time to learn Python

Learning Python as basics will not take a lot of time. It can be from two to four weeks to be comfortable with it. Learning other frameworks on top of Python might take time. It depends on the filed and the difficulty of the framework. Learning how to build an application with Flask or Django might take 4 to 6 weeks. For Machine learning, it can take longer. Machine learning is a more complicated field. It takes more time to learn. Note that time can differ depends on your learning process. Keep in mind that fields Like Machine learning or Data science will require a mathematical background. This might make it longer to learn.

How Much Python programmers make?

Python is used in different industries. This makes it easy to find a job with it. In terms of Your salary, a lot of factors will control this.

  • Your experience
  • Your country
  • Company business size
  • Type of application you're building

That's why the more you learn more about it the more is always better. For Exact numbers about your expected salary that matches your experience. You should check Glassdoor. It'll help you know the average number in your area based on skills.

Conclusion

Python has a lot of useful usages. It is based on the type of application you want to build. Learning Python is an ongoing process. The more you learn about python the more applications you can build. It'll help you get a job faster and increase your salary.