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

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...

Step by Step Tutorial - Python

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

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...

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...

What is so special about MidJourney v5 release?

Artwork by MidJourney MidJourney is a popular online service that allows users to generate realistic and artistic images from text prompts using artificial intelligence. It has been widely used by artists, designers, writers, and hobbyists for various creative purposes. However, until recently, MidJourney had some limitations in its image quality and diversity. For example, some images looked blurry or distorted, some had unrealistic colors or lighting effects, and some had anatomical errors such as extra fingers or missing limbs. That's why many users have been eagerly waiting for the MidJourney v5 release, which promises to deliver significant improvements in image generation. According to the MidJourney team, v5 is not just an update but a complete overhaul of the underlying algorithm that powers the service. Here are some of the key features and benefits of v5 that make it so special: - High resolution : v5 can generate images up to 1024x1024 pixels, which is four times larger ...