About 1,740 results
Open links in new tab
  1. 7. Input and OutputPython 3.14.3 documentation

    2 days ago · There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the …

  2. python - How do I get ("return") a result (output) from a function

    Effectively, there are two ways: directly and indirectly. The direct way is to return a value from the function, as you tried, and let the calling code use that value. This is normally what you want. …

  3. Python Return Values: Function Output Guide - PyTutorial

    5 days ago · Learn how Python functions return values, handle multiple outputs, and use None effectively to write cleaner, more predictable code.

  4. Input and Output in Python - GeeksforGeeks

    Jan 27, 2026 · Understanding input and output operations is fundamental to Python programming. With the print () function, we can display output in various formats, while the input () function …

  5. How to Print the output of a Function in Python - bobbyhadz

    Apr 9, 2024 · To print the output of a function: Make sure to return a value from the function. Call the function and store the result in a variable. Use the print() function to print the result. Notice …

  6. How to output function execution results - LabEx

    Learn effective Python techniques for outputting function results, including return values, print methods, and logging strategies for better code debugging and performance.

  7. Python - Output Variables - W3Schools

    The print() function is often used to output variables. In the print() function, you output multiple variables, separated by a comma: You can also use the + operator to output multiple …

  8. Python Basic Input and Output (With Examples) - Programiz

    In this tutorial, we will learn simple ways to display output to users and take input from users in Python with the help of examples.

  9. Basic Input and Output in Python

    In Python, the input() function allows you to capture user input from the keyboard, while you can use the print() function to display output to the console. These built-in functions allow for basic …

  10. How to Display Output in Python: A Comprehensive Guide

    Learn how to display output in Python using print () and other methods. This guide covers basic syntax, formatting, and advanced techniques for beginners and intermediate learners.