in programmingwhitespace refers to any nonprinting charactersuch as spacestabsand end-of-line symbols you can use whitespace to organize your output so it' easier for users to read to add tab to your textuse the character combination \ as shown at uprint("python"python print("\tpython"python to add newline in stringuse the character combination \nprint("languages:\npython\nc\njavascript"languagespython javascript you can also combine tabs and newlines in single string the string "\ \ttells python to move to new lineand start the next line with tab the following example shows how you can use one-line string to generate four lines of outputprint("languages:\ \tpython\ \tc\ \tjavascript"languagespython javascript newlines and tabs will be very useful in the next two when you start to produce many lines of output from just few lines of code stripping whitespace extra whitespace can be confusing in your programs to programmers 'pythonand 'python look pretty much the same but to programthey are two different strings python detects the extra space in 'python and considers it significant unless you tell it otherwise it' important to think about whitespacebecause often you'll want to compare two strings to determine whether they are the same for exampleone important instance might involve checking people' usernames when they log in to website extra whitespace can be confusing in much simpler situations as well fortunatelypython makes it easy to eliminate extraneous whitespace from data that people enter python can look for extra whitespace on the right and left sides of string to ensure that no whitespace exists at the right end of stringuse the rstrip(method