#This is supposed to tab in the printed version but I can't see it on this site. TabbyCat = "\tI'm tabbed in." #\n does a page break as I thought before. PersianCat = "I'm split\non a line." #\\ adds an actual backslash to the string. BackslashCat = "I'm \\ a \\ cat." #So \t tabs in, can't see on fiddle, and if you add an asterick it creates a bulleted list. #Also multiple escape sequences can be done in a row such as \n\t* FatCat = """ \t* cat food \t* fishes \t* catnip\n\t* grass """ print TabbyCat print PersianCat print BackslashCat print FatCat
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question