Category: New Python tutorial

python tutorials and learn python

Created with Sketch.

Python Type Conversion

Python Type Conversion   Summary: in this tutorial, you’ll learn about the type conversion in Python and some useful type conversion functions. Introduction to type conversion in Python To get an input from users, you use the input() function. For example: value = input(‘Enter a value:’) print(value) Code language: Python (python) When you execute this…
Read more

Python Comments

Python Comments   Summary: in this tutorial, you’ll learn how to add comments to your code. And you’ll learn various kinds of Python comments including block comments, inline comments, and documentation string. Introduction to Python comments Sometimes, you want to document the code that you write. For example, you may want to note why a…
Read more

Python Constants

Python Constants   Summary: in this tutorial, you’ll learn how to define Python constants. Sometimes, you may want to store values in variables. But you don’t want to change these values throughout the execution of the program. To do it in other programming languages, you can use constants. The constants like variables but their values…
Read more

Python Boolean

Python Boolean Summary: in this tutorial, you’ll learn about the Python boolean data type, falsy and truthy values. Introduction to Python Boolean data type In programming, you often want to check if a condition is true or not and perform some actions based on the result. To represent true and false, Python provides you with…
Read more

Python Numbers

Python Numbers   Summary: in this tutorial, you’ll learn about Python numbers and how to use them in programs. Python supports integers, floats, and complex numbers. This tutorial discusses only integers and floats. Integers The integers are numbers such as -1, 0, 1, 2, 3, .. and they have type int. You can use Math…
Read more

Python String

Python String   Summary: in this tutorial, you’ll learn about Python string and its basic operations. Introduction to Python string A string is a series of characters. In Python, anything inside quotes is a string. And you can use either single or double quotes. For example: message = ‘This is a string in Python’ message…
Read more

Python Variables

Python Variables   Summary: in this tutorial, you’ll learn about Python variables and how to use them effectively. What is a variable in Python? When you develop a program, you need to manage values, a lot of them. To store values, you use variables. In Python, a variable is a label that you can assign…
Read more

Python Syntax

Python Syntax   Summary: in this tutorial, you’ll learn about the basic Python syntax so that you can get started with the Python language quickly. Whitespace and indentation If you’ve been working in other programming languages such as Java, C#, or C/C++, you know that these languages use semicolons (;) to separate the statements. Python,…
Read more

Python Basics

Python Basics   In this section, you’ll learn the basic Python. If you’re completely new to Python programming, this Python basics section is perfect for you. After completing the tutorials, you’ll be familiar with Python programming. Section 1. Fundamentals Syntax – introduce you to the basic Python programming syntax. Variables – explain to you what…
Read more

Python Hello World

Python Hello World   Summary: in this tutorial, you’ll learn how to develop the first program in Python called “Hello, World!”. If you can write “hello world” you can change the world. Raghu Venkatesh Creating a new Python project First, create a new folder called helloworld. Second, launch the VS code and open the helloworld…
Read more