Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1246

Python • Re: cls alternative

$
0
0
If you're going to post python you need the forum to look after lefthand whitespace, or your python code gets scrambled.

Use [code][/code] tags.

That makes the difference between

if code-tags == "used":
print ("Python code is perfectly formatted")
else
print ("Code is badly scrambled")

And

Code:

if code-tags == "used":  print ("Python code is perfectly formatted")else  print ("Code is badly scrambled")
Please use the edit function to add those two tags to your posting.

Statistics: Posted by DougieLawson — Thu Feb 27, 2025 5:13 pm



Viewing all articles
Browse latest Browse all 1246

Trending Articles