Article
In Python, functions are objects: they can be assigned to variables, can be returned from other functions, stored in lists or dicts and passed as parameters for other functions. Consider, for example, the map() built-in function. Its syntax is map(function, iterable) and it is used to handily apply function...
Felipe Antunes
File upload is very ubiquitous to any web application and when it comes to uploading files and resources over the internet (on a browser), things can be somewhat stressful. Fortunately, with HTML 5, input elements which usually come with form control to allow users to modify data can become so...
Uchechukwu Azubuko
Python's json library has many utilities for encoding and decoding data in JSON format. In particular, the json.load() method decodes an JSON read as a file, and the json.loads() decode an JSON read as a string. In general, when decoding JSON files, the data is converted to Python...
The switch statement is a powerful and convenient tool for controlling the flow of your program. It allows you to quickly and easily create multiple branches of code, depending on the value of a given variable or expression. It's commonly used when you need to execute different logic depending on...
Guest Contributor
Writing unit tests is something beginners and seasoned engineers alike typically put off for later phases of development, yet - they're key to stable and robust software development. The basic premise of test-driven development (TDD) is writing your tests even before you start coding. That's a great goal to strive...
Scott Robinson
As a developer, one of the things at the top of your list ought to be shipping bug-free code. Nothing could be worse than finding out on Thursday night that the changes you made on Monday broke the live application. The only way to ensure that your app works according...
The security of users and their personal data while using a web application is paramount. While this guiding principle has been acknowledged even from the early stages of web development - bad actors find loopholes in applications, and may exploit your users. Many "standard" attacks are well-known and...
David Landup
The Random Forest algorithm is one of the most flexible, powerful and widely-used algorithms for classification and regression, built as an ensemble of Decision Trees. If you aren't familiar with these - no worries, we'll cover all of these concepts. In this in-depth hands-on guide, we'll build an intuition on...
Cássia Sampaio
Whether you're building a verification script for user input, a login form that requests users to include a character in a password - checking whether a string contains a character isn't an uncommon operation. In this tutorial - we'll take a look at the many ways you can check whether...
© 2013-2025 Stack Abuse. All rights reserved.