+ 1
Please can i have answers for these questions thank!
What are == used for, \n. What are strings and what are input/output please help!! :)
4 Réponses
+ 2
== is a comparison operator used to compare two conditions
example
5 == 5
this is to check if 5 is equal to 5
\n is a escape sequence for new line
example
print("hello \nhow are u?")
in the above example "hello" would be printed in the first line and "how are u?" would be printed in the new line as '\n' is used in front of it.
input and output are simply just giving a input to computer
output is simply the computer calculates and show the answer
example
x=2
y=8
print(x + y)
now everything we gave is input
the answer shown in the computer screen is the output
I mean '10' is the output
hope u got everything u asked...
0
Thanks very much i understand it really well now!
0
== are used for comparison
0
can i get answer of sololern classes and object>modele quiz 4<5 question