About 15,700,000 results
Open links in new tab
  1. How do I print a python code on paper - Stack Overflow

    May 28, 2011 · I need to print a python source code on a paper. What is the easiest way to do that from the shell.

  2. Printing on paper with Python ️ - DEV Community

    May 11, 2021 · In 2021, I decided to integrate the print tool into another program written in Python using the Qt GUI toolkit. This program was a Python re-write of another C# project of mine. And the PyQt binding really allows for a nice GUI creation with the Qt Designer. For the QR codes, I used the qrcode python module. It easily generates PNG files.

  3. Print out your code. On paper. - Codementor

    Jun 26, 2019 · To print your code, run: -c inputfile.py. The output file will look something like this: Then you can either open out.ps (on MacOS to open in your default PostScript viewer), or print it to your default printer with lpr out.ps.

  4. printing - Print to standard printer from Python? - Stack Overflow

    Oct 4, 2012 · Is there a reasonably standard and cross platform way to print text (or even PS/PDF) to the system defined printer? Assuming CPython here, not something clever like using Jython and the Java printing API. This only works on Windows. You can do the following:

  5. How to print text with specific format to a printer in Python?

    Mar 16, 2023 · I am printing a text string to a printer like so: import os string_value = 'Hello, World!' printer = os.popen('lpr -P Canon_iP110_series', 'w') printer.write(string_value) printer.close() This works perfectly, printing the text to the printer in what I assume is the default font/color (black).

  6. How To Print Python Code On Paper - Slickofficematerial.com

    May 24, 2024 · It is possible to print out code in the original Python format, by using the print() command in the programming language. This can be done using tools such as the Pretty Print Library for Python, which can format the code with line …

  7. How to Print in Python - A Detailed Guide for Beginners

    Jul 31, 2023 · In this article – with plenty of examples – we’ll explore the print() function in Python. It’s one of the most useful Python built-in functions!

  8. 5 Different Ways to Print in Python | by DoneWithWork - Medium

    May 2, 2023 · Discover the top 5 ways to print output in Python. From basic 'print' functions to file and stream printing, optimize your code for better performance. Read today!

  9. How can I print out code on paper that retains the text editor ... - Reddit

    Just use the snipping tool on Windows or the Screenshot tool on Mac and print the resulting image(s).

  10. Print Out Your Code. On Paper. — Carl Tashian

    May 26, 2018 · To print your code, run: -c inputfile.py. The output file will look something like this: Then you can either open out.ps (on MacOS to open in your default PostScript viewer), or print it to your default printer with lpr out.ps. Enscript has a …

  11. Some results have been removed
Refresh