Evaluate Expressions Dynamically With Python eval()

Evaluate Expressions Dynamically With Python eval() 1

The built-in Python function eval() is used to evaluate Python expressions. You can pass a string containing Python, or a pre-compiled object into eval() and it will run the code and return the result. Although Python’s eval() is an incredibly useful tool, the function has some important security implications that you should consider before using … Read more

Simulating Real-World Processes in Python With SimPy

Simulating Real-World Processes in Python With SimPy 5

The real world is full of systems, like airports and highways, that frequently experience congestion and delay. When these systems are not optimized, their inefficiency can lead to countless unhappy customers and hours of wasted time. In this course, you’ll learn how to use Python’s simpy framework to create virtual simulations that will help you … Read more

Python Basics Setting Up Python

Setting up Python is the first step to becoming a Python programmer. In this course, you’ll learn how to download and install Python for Windows, macOS, and Ubuntu Linux and how to open Python’s Integrated Development and Learning Environment, IDLE. There are many ways to install Python. You can download official Python distributions from Python.org, … Read more

Python vs Java Object Oriented Programming

Python vs Java Object Oriented Programming 6

Java programmers making a move to Python often struggle with Python’s approach to object-oriented programming (OOP). The approach to working with objects, variable types, and other language capabilities taken by Python vs Java are quite different. It can make switching between both languages very confusing. This course compares and contrasts object-oriented programming support in Python … Read more

Regular Expressions and Building Regexes in Python

Regular Expressions and Building Regexes in Python 8

In this course, you’ll explore regular expressions, also known as regexes, in Python. A regex is a special sequence of characters that defines a pattern for complex string-matching functionality. String matching like this is a common task in programming, and you can get a lot done with string operators and built-in methods. At times, though, … Read more