Quiz: The Python print() Function

Interactive Quiz ⋅ 12 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Your Guide to the Python print() Function. The print() function outputs objects to the console or a specified file-like stream. You’ll practice: Printing multiple values with custom separators Changing the end-of-line character Redirecting output using the file parameter Forcing immediate output with the flush parameter Work through these questions to reinforce your knowledge of print()’s parameters and best practices for clear, formatted I/O. The […]

Read more

Your Guide to the Python print() Function

If you’re like most Python users, then you probably started your Python journey by learning about print(). It helped you write your very own “Hello, World!” one-liner and brought your code to life on the screen. Beyond that, you can use it to format messages and even find some bugs. But if you think that’s all there is to know about Python’s print() function, then you’re missing out on a lot! Keep reading to take full advantage of this seemingly […]

Read more

Starting With DuckDB and Python

The DuckDB database provides a seamless way to handle large datasets in Python with Online Analytical Processing (OLAP) optimization. You can create databases, verify data imports, and perform efficient data queries using both SQL and DuckDB’s Python API. By the end of this video course, you’ll understand that: You can create a DuckDB database by reading data from files like Parquet, CSV, or JSON and saving it to a table. You query a DuckDB database using standard SQL syntax within […]

Read more

Python enumerate(): Simplify Loops That Need Counters

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Looping With Python enumerate() Python’s enumerate() function helps you with loops that require a counter by adding an index to each item in an iterable. This is particularly useful when you need both the index and value while iterating, such as listing items with their positions. You can also customize the starting index with […]

Read more

AI Testing and Evaluation: Learnings from Science and Industry

[MUSIC ENDS]   For our introductory episode, I’m pleased to welcome Amanda Craig Deckard from Microsoft to discuss the company’s efforts to learn about testing in other sectors.   Amanda is senior director of public policy in the Office of Responsible AI, where she leads a team that works closely with engineers, researchers, and policy experts to help ensure AI is being developed and used responsibly. Their insights shape Microsoft’s contribution to public policy discussions on laws, norms, and standards for AI.   […]

Read more

Learning from other domains to advance AI evaluation and testing

As generative AI becomes more capable and widely deployed, familiar questions from the governance of other transformative technologies have resurfaced. Which opportunities, capabilities, risks, and impacts should be evaluated? Who should conduct evaluations, and at what stages of the technology lifecycle? What tests or measurements should be used? And how can we know if the results are reliable?   Recent research and reports from Microsoft (opens in new tab), the

Read more

AI Consulting

Kavita Ganesan is the author of the Amazon bestselling book, The Business Case for AI and founder of Opinosis Analytics, an AI consulting company providing advisory, strategy and development services. With over 15 years of experience in the field, Kavita has scaled and delivered multiple successful AI initiatives for large companies such as eBay, 3M, and GitHub, as well as smaller organizations. Kavita holds advanced degrees from prestigious computer science programs, specifically a Masters’s from the University of Southern California […]

Read more

Exploring Python’s list Data Type With Examples

The list class is a fundamental built-in data type in Python. It has an impressive and useful set of features, allowing you to efficiently organize and manipulate heterogeneous data. Knowing how to use lists is a must-have skill for you as a Python developer. Lists have many use cases, so you’ll frequently reach for them in real-world coding. By working through this video course, you’ll dive deep into lists and get a solid understanding of their key features. This knowledge […]

Read more
1 2 3 927