Quiz: Functional Programming in Python: When and How to Use It

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of Functional Programming in Python. By working through this quiz, you’ll revisit the functional programming paradigm, the concept of functions as first-class citizens in Python, the use of the lambda keyword, and how to implement functional code using map(), filter(), and reduce(). The quiz contains 10 questions and    

Read more

Interacting With REST APIs and Python

There’s an amazing amount of data available on the Web. Many web services, like YouTube and GitHub, make their data accessible to third-party applications through an application programming interface (API). One of the most popular ways to build APIs is the REST architecture style. Python provides some great tools not only to get data from REST APIs but also to build your own Python REST APIs. In this video course, you’ll learn: What REST architecture is How REST APIs provide […]

Read more

Players, creators, and AI collaborate to build and expand rich game narratives

This paper was presented at the IEEE 2024 Conference on Games (opens in new tab) (IEEE CoG 2024), the leading forum on innovation in and through games. In the fast-evolving landscape of video game development, crafting dialogues and narratives is a labor-intensive endeavor. Traditionally, creating these elements involved meticulous hand-coding, resulting in static interactions that limit player agency. However, the rise of large language models (LLMs) is introducing possibilities for richer, more dynamic narrative  

Read more

GENEVA uses large language models for interactive game narrative design

This paper was presented at the IEEE 2024 Conference on Games (opens in new tab) (IEEE CoG 2024), the leading forum on innovation in and through games. Mastering the art of storytelling, a highly valued skill across films, novels, games, and more, requires creating rich narratives with compelling plots and characters. In recent years, the rise of AI has prompted inquiries into whether large language models (LLMs) can effectively generate and sustain detailed, coherent storylines that engage audiences.  

Read more

Strings and Character Data in Python

Python’s strings are ordered sequences of characters. Because of this, you can access individual characters from a string using the characters’ associated index. What’s a character’s index? Each character in a string has an index that specifies its position. Indices are integer numbers that start at 0 and go up to the number of characters in the string minus one. In the following sections, you’ll learn how to run these two operations on your Python strings. Indexing Strings You can […]

Read more

5 DIY Python Functions for Data Cleaning

Image by Author | Midjourney Data cleaning: whether you love it or hate it, you likely spend a lot of time doing it. It’s what we signed up for. There’s no understanding, analyzing, or modeling data without first cleaning it. Making sure we have reusable tools handy for data cleaning is essential. To that end, here are 5 DIY functions to give you a some examples and starting points for building up your own data cleaning tool chest. The functions […]

Read more

Simulate a Text File in Python

Testing applications that read files from a disk can be challenging. Issues such as machine dependencies, special access requirements, and slow performance often arise when you need to read text from a file. In this Code Conversation with instructor Martin Breuss, you’ll discover how to simplify this process by simulating text files with StringIO from the io module in Python’s standard library. In this video course, you’ll learn how to: Use io.StringIO to simulate a text file on disk Perform […]

Read more

7 Key Terms Every Machine Learning Beginner Should Know

Image by Editor | Midjourney & Canva If you’re new to machine learning, understanding basic terms is crucial. Knowing key terms can help you understand the basics better. Here are 7 essential terms every beginner should know. These terms will give you a solid foundation to build your machine learning knowledge. 1. Algorithm An algorithm is a set of rules a computer uses to solve a problem. It finds patterns in data and makes predictions. There are several types of […]

Read more

Quiz: Python’s Built-in Exceptions: A Walkthrough With Examples

Interactive Quiz ⋅ 19 QuestionsBy Leodanis Pozo Ramos Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of the most commonly used built-in exceptions in Python. Exception handling is a core topic in Python. Knowing how to use some of the most common built-in exceptions can help you to debug your code and handle your own exceptions. Good luck! The quiz contains 19 questions    

Read more

7 Free Resource to Master LLMs

Image by Editor | Midjourney Large Language Models (LLMs) are a hot topic right now, and everyone is getting involved in this new trend. Companies are searching for LLM engineers who can develop and implement AI solutions to optimize their workflow and reduce costs through automation, customer service, recommendations, issue resolution, and debugging. Instead of worrying that AI will take your job, why not upskill and join the race? In this blog, we will provide a review of free courses, […]

Read more
1 18 19 20 21 22 907