print(repr('a\tb'))
repr()
gives you the “representation” of the string rather than the printing the string directly.
More Related Contents:
- Binning a column with Python Pandas
- multiple prints on the same line in Python
- setting y-axis limit in matplotlib
- Why Python recursive function returns None
- Python: make eval safe [duplicate]
- How to plot and annotate a grouped bar chart
- C and Python – different behaviour of the modulo (%) operation
- Why do I get a “referenced before assignment” error when assigning to a global variable in a function?
- Getting the docstring from a function
- Python scope: “UnboundLocalError: local variable ‘c’ referenced before assignment” [duplicate]
- How to make scipy.interpolate give an extrapolated result beyond the input range?
- Django multi tenancy
- Can you list the keyword arguments a function receives?
- Get number of items from list (or other iterable) with certain condition
- Passing a matplotlib figure to HTML (flask)
- ValueError: malformed string when using ast.literal_eval
- Pythonic way of detecting outliers in one dimensional observation data
- Pandas: Difference between pivot and pivot_table. Why is only pivot_table working?
- How to remove square brackets from list in Python? [duplicate]
- Most Pythonic way to concatenate strings
- Pytorch – RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed
- Unexpected list behavior in Python
- Get all possible (2^N) combinations of a list’s elements, of any length
- method of iterating over sqlalchemy model’s defined columns?
- What’s the simplest way to extend a numpy array in 2 dimensions?
- What are the limitations of distributing .pyc files?
- No plot window in matplotlib
- Slice Pandas dataframe by index values that are (not) in a list
- Interesting ‘takes exactly 1 argument (2 given)’ Python error
- Using FastAPI in a sync way, how can I get the raw body of a POST request?