About 6,190,000 results
Open links in new tab
  1. python - What does base value do in int function? - Stack Overflow

    Apr 21, 2014 · The int() function can convert an integer in a base (or radix) other than 10 passed as a string, where the second parameter is the base of the number in the string, and the result …

  2. How to display special characters in Python with print

    Feb 27, 2013 · >>> print("\u00a9") © >>> print("\N{COPYRIGHT SIGN}") © >>> print("©") © In python 2 you must prefix the string with a u ( u"..." ) to tell python its a unicode string.

  3. How to print Superscript and Subscript in Python?

    May 2, 2025 · In this article, we will explore how to print superscripts and subscripts in Python. Unicode characters allow us to easily display superscript and subscript numbers in Python. By …

  4. Printing Special Characters in Python 3 - Zivzu

    May 10, 2025 · Printing special characters in Python 3 involves using escape sequences, Unicode escape sequences, the ord() and chr() functions, string literals, the print() function with …

  5. Unicode characters for engineers in Python

    Dec 29, 2017 · To print any character in the Python interpreter, use a \u to denote a unicode character and then follow with the character code. For instance, the code for β is 03B2, so to …

  6. Print a String with the Special Characters in Python - bobbyhadz

    Apr 9, 2024 · Use the `repr()` function to print a string with the special characters, e.g. `print(repr(my_str))`.

  7. Python print() Function - W3Schools

    The print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string …

    Missing:

    • Base

    Must include:

  8. Modulo String Formatting in Python

    You can use the modulo operator for string formatting in Python. It's a commonly used technique in older Python versions, especially in Python 2. Therefore, you might see it when digging into …

  9. Usage of Base Parameter in Python's int () Method - reintech.io

    In this tutorial for software developers, we explore Python's int() method and learn how it can be used to convert different data types into integers. We cover examples for strings, floats, and …

  10. python - How do I print a '%' sign using string formatting? - Stack ...

    Feb 5, 2015 · The new Python 3 approach is to use format strings. percent = 12 print("Percentage: {0} %\n".format(percent)) >>> Percentage: 12 % This is also supported in …

  11. Some results have been removed