Skip to main content

Python Tutorial - Basics

Python is used across different organizations and utilized for multiple projects across the world. It's very easy to learn, maintain, and update. It is open-source, available for free, and supports multiple projects as well. It can be used for scripting in the background, creating wonderful programs, and also can be used for processing complex items like Natural Language Processing, Medical Image Processing, or even more complex items. 

Python Logo

The good thing about Python is easy to Learn. Effective to use, and moreover less number of lines of code. It's just like writing it in plain English and less number of brackets but uses the power of the indentation.  

This post will have some steps, to begin with. like installing, IDE setup, printing, reading the inputs, and variables declaration. 

Installation:

To install python, go to the official website and download it on your computer. You can install it on any operating system. If you prefer to run online IDE, there are so many good websites available.

I personally prefer, https://colab.research.google.com/. They provide free GPU and TPU features, which will be used for processing huge data in a short time. We will discuss this in feature posts. 

There are so many IDEs available for Python execution, including the official IDE from python. Spyder, Jupyter Notebook, and PyCharm are some of the famous IDEs which is supported in multiple operating systems.

MS Visual studio code and Notepad++ are also used by some developers. 

For beginners and basic usage, I would recommend using the python IDE that comes by default. Once you understand the basics, then you can try out plenty of options available for free and select your own. 

I am going to use MS Visual studio code later in the posts since it has the GitHub Pilot option and Git Integration. 

Printing:

To print something, we can use the simple command "print".

print ("Hello World!")

Print Hello World in Python

If you are going to use MS Visual studio code, then it will look like this,


print ("Hello World!")


Popular posts from this blog

Retirement Planning Decade by Decade: A Guide to Secure Your Future

Retirement Planning Decade by Decade: A Guide to Secure Your Future Retirement planning is an important aspect of financial planning that everyone should take seriously. No matter what stage of life you are in, it's never too early or too late to start preparing for retirement. This guide will provide you with a decade-by-decade breakdown of what to expect, trade-offs to navigate, essential elements to achieving success, planning tips, and key numbers to keep in mind when it comes to saving for retirement. Your 20s: Getting Started and Building Your Foundation In your 20s, you are just starting out in your career and figuring out what you want to do with your life. The main trade-off you will face is balancing your short-term financial goals with your long-term retirement goals. The essential element to achieving success in this decade is to start early and take advantage of compound growth. A good starting point would be to save at least 15% of your gross salary, with 20% being ev...

Build an AI-Powered Task Management System with OpenAI and Pinecone APIs

AI-Powered Task Management System with Python and OpenAI: A Pared-Down Version of Task-Driven Autonomous Agent If you're looking for a Python script that demonstrates an AI-powered task management system, look no further than BabyAGI. This script utilizes the APIs of OpenAI and Pinecone to prioritize, create, and execute tasks based on a predefined objective and the result of previous tasks. Build an AI-Powered Task Management System with OpenAI and Pinecone APIs The main idea behind BabyAGI is that it takes the result of previous tasks and creates new ones based on the objective using OpenAI's natural language processing (NLP) capabilities. Pinecone is then used to store and retrieve task results for context. Although it's a pared-down version of the original Task-Driven Autonomous Agent, it still packs a punch in terms of its functionality.  How It Works The script works by running an infinite loop that goes through the following steps: Pull the first task from the task l...

Step by Step Tutorial - Python

 We have uploaded our course material for Python on Github. https://github.com/SiriSarah/Python

Understanding PDF Operations in Python

 Understanding PDF Operations in Python In today's digital age, Portable Document Format (PDF) has become one of the most widely used file formats for exchanging documents. PDFs are popular for their ability to preserve the original formatting of a document and maintain its integrity, even when viewed on different devices. As a result, working with PDFs has become an essential part of many businesses and organizations. The Need for PDF Operations in Python With the increasing use of PDFs, there is a growing need to automate various tasks related to PDFs, such as merging multiple PDFs into one, splitting a PDF into smaller parts, rotating a PDF, and more. Doing these tasks manually can be time-consuming and error-prone. That's why automating these tasks using a programming language like Python can be a game-changer. Creating a PDF Program in Python To create a PDF program in Python, we will need to import some libraries. Some popular libraries for working with PDFs in Python inc...

How LinkedIn is using Microsoft's chat for creating technical articles

LinkedIn is a professional networking platform that connects millions of users across various industries and fields. One of the main features of LinkedIn is the ability to share and discover content that is relevant to your career and interests. However, creating high-quality content can be challenging, especially for technical topics that require specialized knowledge and skills. How LinkedIn is using Microsoft's chat for creating technical articles That's why LinkedIn has partnered with Microsoft to leverage its chat mode, a powerful tool that can help users generate content such as articles, reports, presentations, and more. Microsoft's chat mode is a conversational interface that allows users to interact with Bing, the web search engine developed by Microsoft. Users can ask Bing questions, request information, or give commands in natural language, and Bing will respond with appropriate answers, suggestions, or actions. How LinkedIn is using Microsoft's chat for cre...