Edwin's Articles
Python ord(): How to Convert Character to Unicode
Python is full of useful and powerful functions. One such Python function is “ord()”. You can use the ord function to convert a single character to its Unicode code point i.e., integer representation. This function becomes very helpful when you are working with text processing, encoding, and ASCII or Unicode values. Today at PythonCentral, let […]
Read MorePySimpleGUI: GUI Framework for Python
We all know the difference a GUI makes. For beginners, a GUI provides an accessible way to use tools that might otherwise seem intimidating when presented through command line interfaces. PySimpleGUI is a lightweight and user-friendly GUI framework for Python. This allows you to create interactive applications with minimal code. Unlike Tkinter, PyQt, or Kivy, PySimpleGUI […]
Read MoreSet Operations in Python: Handle Unique Elements
If you are working with a variety of set operations such as union, intersection, difference, and symmetric difference, then you will be working with unique elements a lot. Sets in Python are a powerful data structure that allows for efficient handling of unique elements. Set operations are essential for mathematical computations, database operations, and data […]
Read MorePython not Operator: How to use it
It is important to learn all Boolean operators in Python. One such Boolean value is the Python “not” operator. This operator is commonly used in conditional statements, loops, and other Boolean logic operations. Along with this operator we recommend learning about all other logical operators as well. Today at PythonCentral, let us explain everything about […]
Read MoreJinja2: Python’s Powerful Templating Engine Explained
Jinja2 is a designer-friendly, secure, and fast templating engine for Python. If you frequently work with web frameworks like Flask and Django, you will love it. Jinja2 lets you embed Python expressions, conditionals, and loops inside templates. This helps you build scalable and maintainable applications. Today at PythonCentral, let us explain the basics, its syntax, […]
Read MoreSnusbase: How to Check Leaked Data
Have you ever wanted an online search engine that tells you if your databases are leaked to the public or not? Snusbase will do exactly that. Security researchers, ethical hackers, and IT professionals often use it to check for compromised credentials and assess data security risks. Snusbase lets you query breached data using email addresses, […]
Read MorePython Type Hints: How to Enhance Code Clarity and Maintainability
We explained in our Python Classes guide already that Python is a dynamically typed language. For those who landed directly to this Python Type Hints explanatory guide, a dynamically typed language means the variables do not require explicit type declarations. While this provides flexibility, it can also lead to bugs, unclear code, and maintainability issues. […]
Read MoreClass in Python: Functional Block in Python OOP
If you have been learning or working with programming languages in general, you would have heard of this term: object-oriented programming (OOP). Even in Python, object-oriented programming is an important framework. In this framework, an important component is class. Think of a class in Python as a blueprint for creating objects. This lets you organize […]
Read MorePython Typing: The Only Guide You Will Ever Need
Python is dynamically typed. This means that the variables do not require explicit type declarations. Interestingly, with the introduction of type hints in Python version 3.5, you can now specify the expected types of function arguments, variables, and return values. Type hints improve your code’s reliability, minimize debugging time, and helps with static analysis. Today […]
Read MorePython Do While Loop: Step by Step Walkthrough
In any programming language, including Python, loops are essential for many purposes like iterating over sequences, running repetitive tasks, and handling dynamic data structures. If you have been using PythonCentral for learning Python, you would have realized that Python gives you “for” and “while” loops but not a built-in “do-while loop”. While the do-while […]
Read More