- 3

In python I write . Line 1 answer(2) line 2 while answer(2) and then how can i do that it comes 'true'

5th Jul 2020, 2:48 PM
Kir-Py
Kir-Py - avatar
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.
5th Jul 2020, 4:14 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 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.
5th Jul 2020, 4:27 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 9
You question is not clear. Please give a better description and put your code in playground and link it here. Thanks!
5th Jul 2020, 2:51 PM
Lothar
Lothar - avatar
+ 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 ๐Ÿ™‚
5th Jul 2020, 3:36 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 7
Kir-Py Please provide complete information and be clear about your question to get help effectively.
5th Jul 2020, 3:00 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 7
Kir-Py While answer=="yes"//true condition So it will go inside the loop.
5th Jul 2020, 3:05 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 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.
5th Jul 2020, 3:24 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 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.
5th Jul 2020, 3:16 PM
Ketan [#Be Happy ๐Ÿ˜„]
Ketan [#Be Happy ๐Ÿ˜„] - avatar
+ 1
Thank you ๐Ÿ˜Š๐Ÿ‘
5th Jul 2020, 3:37 PM
Kir-Py
Kir-Py - avatar
0
answer_2 = True while answer_2:
5th Jul 2020, 2:54 PM
Bohdan Priymak
Bohdan Priymak - avatar
0
Thanks you!!?
5th Jul 2020, 3:25 PM
Kir-Py
Kir-Py - avatar
0
Line1 = Line2 Print("answer(2)") It gives line2 is true.
7th Jul 2020, 1:56 AM
LOKESH CHAUHAN
LOKESH CHAUHAN - avatar
- 1
Ok. 1apple=0 2answer='yes' 3while answer=='yes': true or what??
5th Jul 2020, 3:02 PM
Kir-Py
Kir-Py - avatar
- 1
Ketan, look at my code , name:r I had done the code but then the result was-error
5th Jul 2020, 3:10 PM
Kir-Py
Kir-Py - avatar
- 1
I thought the programm must solve alone that its (true) P.s I just wanted to know about this.
5th Jul 2020, 3:20 PM
Kir-Py
Kir-Py - avatar
- 1
And i have a question I saw your last written code about birthday, are you doing so many lines by yourself?
5th Jul 2020, 3:27 PM
Kir-Py
Kir-Py - avatar
- 1
I have a question hot to like comments , cause i cant do it, why?
5th Jul 2020, 4:04 PM
Kir-Py
Kir-Py - avatar
- 1
Ketan [#Be Happy ๐Ÿ˜„]But my email is verified
5th Jul 2020, 4:17 PM
Kir-Py
Kir-Py - avatar
- 1
while True
7th Jul 2020, 3:52 AM
Jeremy Cheung
Jeremy Cheung - avatar
- 3
Guys am having hard time
5th Jul 2020, 8:17 PM
Hakiza Godwin