YESTERDAY'S LITTLE PRACTICE
secret_code = "DFOCMARU"
code=input("Enter the secret code to open the door: \t ")
if code== secret_code:
print("Welcome")
else:
print("error.")
.
Why is the space so big? in wattpad(web) like when I press enter the space is so big
this
NOW THE ESCAPE SEQUENCE
I don'[t know the most escape sequence but the one you all will more likely use are
/n and /t
/n means newline
lets say.
print("hello world")
print("I am dfocmaru")
instead of this.
allows user to go new line eg:-
print("Hello world!.
I am DFOCMARU")
\t will just put the space.
you may wonder we can just use space, but /t is called Tab. you can think of it.
unlike space \t spread all equally.
example you are making table, using multiple space bar will mess it up while /t will perfectly aligns the gap between them.
ALR EVERYONE BEST OF LUCK IN YOUR LIFE
TOMMOROW ITS GONNA BE:-
BREAK STATEMENT
AND A LITTLE BIT ABOUT LOOP
Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.
YOU ARE READING
PYTHON JOURNEY BY BEGINNER
FanfictionWELCOME TO DFOCMARU'S JOURNEY Where codes become madness, brains go senseless, nights turn restless, eyes grow shineless, spines go spineless, and hands... well, they're boneless. This is Python Journey by Beginner - a chaotic diary of bugs, coffee...
