Tagged articles
print
11 articles · Page 1 of 1
This tutorial demonstrates how to harness Python's built‑in functions—print, input, open, eval, and exec—to customize console logs, write test results to files, create interactive scripts, safely evaluate strings, and dynamically load code, while highlighting common pitfalls and security considerations.
PythonTest Automationdata processing
0 likes · 15 min read

This article introduces Python's print() function, explaining its purpose of displaying program results and detailing each parameter—self, *args, sep, end, and file—so beginners can understand how to control output formatting and destinations.
PythonTutorialbasics
0 likes · 3 min read

Discover five versatile techniques for Python’s print()—from simple string concatenation and comma separation to modern f‑strings, percent formatting, and the .format() method—complete with clear examples and guidance on when to use each approach for clean, readable output.
Code ExamplesString Formattingf-strings
0 likes · 5 min read

This article explains the limitations of using print() for debugging Python code and demonstrates how the IceCream library’s ic() function provides richer, more organized output, supports assignment, visualizes complex data structures, and offers configurable logging features.
DebuggingPythoncode
0 likes · 6 min read

This article explains how the IceCream library's ic() function provides a more systematic and powerful alternative to print‑based debugging in Python, offering detailed execution traces, integrated assignment, and clear visualization of simple and complex data structures.
DebuggingPythondevelopment
0 likes · 8 min read

This article explains how to achieve paginated print preview and PDF generation in a Vue 3 application by using vue3‑print‑nb for on‑demand printing, html2canvas to capture DOM elements as images, and jsPDF to compose multi‑page A4 PDFs with custom headers, footers, and spacing.
PDFVue3frontend
0 likes · 12 min read

This article demonstrates how to use PyCharm 2024.1's local code line AI completion to explore the Python print() function, covering syntax, various output examples, file writing, custom separators, and common pitfalls, while providing complete code snippets for each case.
PyCharmcode completionfundamentals
0 likes · 5 min read

This article explains why Python's print() adds a newline by default, demonstrates how to modify the end parameter or use rstrip() to print multiple outputs on a single line, and provides clear code examples for customizing print behavior when processing files.
File Readingend-parameternewline
0 likes · 5 min read

This tutorial explains why input and output are essential in Python, demonstrates how to use the input function with handling of empty strings, type conversion, whitespace stripping, validation, and how to leverage print for simple and formatted output, including % formatting and custom separators.
FormattingTutorialbasics
0 likes · 9 min read

This article explains why using plain print() for debugging can become confusing in larger Python projects and demonstrates how the Icecream library provides concise, informative output with minimal code, including installation, basic usage, custom prefixes, context information, and clean‑up techniques.
DebuggingToolscode
0 likes · 7 min read

This article explains Python's print() function, covering its syntax, parameters, usage differences between Python 2 and 3, formatting options, controlling line endings, and practical code examples for printing various data types in simple scripts.
FormattingPythonbasics
0 likes · 5 min read
