- 3
In python I write . Line 1 answer(2) line 2 while answer(2) and then how can i do that it comes 'true'
22 odpowiedzi
+ 10
Kir-Py
Well I am not sure but you have to verify your email to like comments I Guess.
Also to mention/tag someone (even me), use @ before there profile name to tag them.
+ 10
Kir-Py
Then you should mail SL regarding this at info@sololearn.com
Also I couldn't find your verified email badge on profile so I think there must be some problem. Try restarting or cache clean of app might it works or else mail them.
+ 9
You question is not clear. Please give a better description and put your code in playground and link it here. Thanks!
+ 8
Kir-Py
Yes๐
Everything becomes easy and normal when you understand the working and usage of language.
It takes practice and learning. I started with simple Hello world as every programmer has done then after some time of learning/practicing I can do more and quite good now.
So don't worry about lines of code or complex things. Start with simple and go on leaning as well as practicing. More you do more you become good and then you will easily do such complex things.
Everyone is beginner at start๐
Happy Learning ๐
+ 7
Kir-Py
Please provide complete information and be clear about your question to get help effectively.
+ 7
Kir-Py
While answer=="yes"//true condition
So it will go inside the loop.
+ 7
Kir-Py
Well program will work according how you Program it. It won't display output if you didn't program it for.
You have to use print statements to display output on screen and also to do that before your program should compile correctly without any error.
Don't worry you will understand completely by learning. I suggest before going to create programs learn a Language and go through tutorials to understand how it works.
+ 4
Kir-Py
Your code:
apples=0
answer='yes'
while answer=='yes'//true condition
My edited version:
apples=0
answer="yes"
while(answer=="yes"):
print("true")
break
I am still unclear about what you really want to do with this so please explain it(as it's confusing)
Also you were getting error because of wrong syntax there coz python works on identitation so please check again.
About "break", I added because otherwise loop will print true infinite times.
+ 1
Thank you ๐๐
0
answer_2 = True
while answer_2:
0
Thanks you!!?
0
Line1 = Line2
Print("answer(2)")
It gives line2 is true.
- 1
Ok.
1apple=0
2answer='yes'
3while answer=='yes':
true or what??
- 1
Ketan, look at my code , name:r I had done the code but then the result was-error
- 1
I thought the programm must solve alone that its (true)
P.s I just wanted to know about this.
- 1
And i have a question I saw your last written code about birthday, are you doing so many lines by yourself?
- 1
I have a question hot to like comments , cause i cant do it, why?
- 1
Ketan [#Be Happy ๐]But my email is verified
- 1
while True
- 3
Guys am having hard time