Skip to content
Al Va edited this page Mar 26, 2024 · 5 revisions

Welcome to the Python-Basic-Programming-Course wiki! Part 1: Basic Python Programming Part 2: 100 Basic Python Codes

This guide introduces the reader informally to the basic concepts and features of the Python programming language from scratch.

Learn by examples! The guide supplements all explanations with clarifying examples.  

Python is a general-purpose, dynamic, high-level, and interpreted programming language. It is a multipurpose programming language because it can be used with web, enterprise, 3D CAD, etc.

Python makes development and debugging fast because no compilation step is included in Python development, and the edit-test-debug cycle is very fast.

Python has many web-based assets, open-source projects, and a vibrant community. 

Python is an open-source, cost-free programming language. It is utilized in several sectors and disciplines as a result.

Python has many third-party libraries that can be used to make its functionality easier. These libraries cover many domains, for example, web development, scientific computing, data analysis, and more.

If you find that you do not have Python installed on your computer, then you can download it for free from the following website: https://www.python.org/

Table of Contents

Why Python?

Installing Jupyter/Anaconda IDE

Getting Started

Declaring Variables

In Python, variables are created when you assign a value to it

Using Strings

Strings are Arrays. Like many other popular programming languages, strings in Python are arrays of bytes representing Unicode characters. A String is a data structure in Python that represents a sequence of characters. Strings are used widely in many different applications, such as storing and manipulating text data, representing names, addresses, and other types of data that can be represented as text.

Boolean Values & Operators

The Python Boolean type is one of Python’s built-in data types. It’s used to represent the truth value of an expression. Booleans represent one of two values: True or False: Input: 1==1 Output: True

Input: 2<1 Output: False

Lists

A list is a data structure in Python that is a mutable, or changeable, ordered sequence of elements. Each element or value that is inside of a list is called an item. Just as strings are defined as characters between quotes, lists are defined by having values between square brackets [ ]. Lists are great to use when you want to work with many related values (your assortment of files, your song playlists, your browser bookmarks, your emails, the collection of videos, etc.). They enable you to keep data together that belongs together, condense your code, and perform the same methods and operations on multiple values at once.

Tuples

Sets

Dictionaries

Arrays

Loops

Conditionals

Functions

Modules

Conclusions

The Road Ahead

References

Why Python?

  • Easy to Use, Learn and Share

  • Low-Code/No-Code Automation

  • Dynamic Memory Allocation

  • Open-Source Projects

  • Extensive GUI Support

  • Wide Range of Libraries

  • Machine Learning (ML) python_guide_all

Clone this wiki locally