Are you totally new to programming or python as a programming language? Any difficulties setting up your IDE(IDLE) all by yourself? Then let's get going.
Hello there, you are welcome to PywE, where Python is taught from scratch. We strive to make the lessons as comprehensive as possible. If you are a beginner, you are at the right place, if you are not, you will still learn a lot to add to your skills
Variables are reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
Strings are always chain of characters bounded by triple, double quotes or single quotes in Python, a string can also be just a character.
Number data types store numeric values. They are immutable data types, which means that changing the value of a number data type results in a newly allocated object. It means numbers when created cannot be altered,...
Operators are mathematical signs that are used to evaluate statements. These return a True or False after evaluation, some return the result of the calculation. They are great for mathematical calculations and Python's operators make it easier.
Python uses bool-ean values to express true or false values. Boolean values are only two, True and False Boolean value is named after a British Mathematician called George Boole, George Boole created Boolean Algebra, which is the basis of all modern computer arithmetic.
Python's list is another datatype that can be used to keep other basic datatypes in a fairly organised manner. This is because members of a list are given position numbers by the Python interpreter and therefore can be accessed using their positions called indexes.
A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The only difference is that tuples can't be changed i.e., tuples are immutable and tuples use parentheses and lists use square brackets.
There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially(From top to down): The first statement in a function is executed first, followed by the second, and so on.
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.
"I will go to the grocery when or if the rain stops", "This team can only win the world cup if it beats the other team in the finals." In this module, we explore how to condition our codes
A module allows you to logically organize your Python code. Grouping related code into a module makes the code easier to understand and use. A module is a Python object with arbitrarily named attributes that you can bind and reference. Simply, a module is a file consisting of Python code.
Dictionaries are one of Python's powerful datatypes, behaves like the popular json, in fact, understanding Python's dictionary gives you almost every thing you need to know about json objects because json can be viewed as Python's dictionaries nested.
By now you should be wondering if there is a way to store data permanently either than in variables, lists or dictionaries. Well, Python provides one of the easiest way to work with files. CRUD(Create, Read, Update and Delete) is made so simple with Python's file system.
Database is another way of storing data. probably the most popular for bigger application. Python's DB_API provides an interface to interact with the most popular databases on the market.
Errors. Everyone makes them unless you are perfect and of course, no one is perfect. Error handling is also made very easy while using Python, you get to handle specific errors and also generic errors (not a recommended practice) as well.
Object-Oriented Programming is available in Python. It allows for creating your own classes, inheritance and other object-oriented style programming. It's a great way to organize and share your code. It also enhance re-usability of your own code.
Regular Expression (RegEx) is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern.
Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connection-less protocols.
A way of running several different programs with benefits of speeding progress and thereby reducing computational time.
Python provides smtplib module, which defines an SMTP client session object that can be used to send mail to any Internet machine with an SMTP or ESMTP listener daemon.
Python provides various options for developing graphical user interfaces (GUIs). Most important are...
Any code that you write using any compiled language like C, C++ or Java can be integrated or imported into another Python script. This code is considered as an "extension."