Hi what do you know about if statement ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

Hi what do you know about if statement ???

I am asking silly question ...yes correct ...but this time to learn big things of if statement with brief information!!!

20th Nov 2018, 11:17 AM
Cuthbert Clayton Carrick
Cuthbert Clayton Carrick - avatar
18 Answers
+ 16
How did you get the Python certificate without understanding if statements?
20th Nov 2018, 12:17 PM
David Ashton
David Ashton - avatar
+ 12
Try to explain briefly!!!
20th Nov 2018, 11:17 AM
Cuthbert Clayton Carrick
Cuthbert Clayton Carrick - avatar
+ 11
I know David Ashton I love to know how to understand others
20th Nov 2018, 1:28 PM
Cuthbert Clayton Carrick
Cuthbert Clayton Carrick - avatar
+ 10
well if... if (something true){ do action } else if (first thing not true and this is true){ do action } if(statements...){ action } else(do if first not true){ action }
20th Nov 2018, 7:35 PM
nicolas turek
nicolas turek - avatar
+ 5
This sounds more like an opinion piece for your personal feed then.
20th Nov 2018, 1:48 PM
HonFu
HonFu - avatar
+ 4
David Ashton yeah lol how is that even possible? maybe there's some sort of exploit?
20th Nov 2018, 5:08 PM
inxanedev!
inxanedev! - avatar
+ 4
It executes code based on a condition. It allows you to handle information you don't know upfront. It can change the entire course of a program based on a single value
20th Nov 2018, 10:33 PM
Riven Skaye
Riven Skaye - avatar
+ 4
it goes like this if(something){ do this } else(does not work for if){ do this } elif(something else){ do this }
21st Nov 2018, 2:28 AM
Trp100
Trp100 - avatar
+ 3
If is explained in every single beginner's tutorial. So what exactly do you expect to get from this post?
20th Nov 2018, 12:04 PM
HonFu
HonFu - avatar
+ 3
It's the same in every language, If-else statement is just if-else statements.
20th Nov 2018, 4:26 PM
Gordon
Gordon - avatar
+ 1
Are you asking to see what we, the public/community knows?, or are you asking because you don't know and want to suck up our knowledge like a Shamwow to water? If the latter, then will it do any good? I'm only asking because you're pretty lvl'd, and you are still asking to learn about if statements? Else: How about YOU start us off by telling us what YOU know first ?...
21st Nov 2018, 7:22 PM
D. Booey 📜
D. Booey 📜 - avatar
+ 1
If statement used if you want to do something like the butterfly effect. Lol
22nd Nov 2018, 12:47 AM
Flouw
Flouw - avatar
+ 1
if one of my favourite poems. https://www.poetryfoundation.org/poems/46473/if--- if(you master if and all thats in it){ you=a man (my son) ; }else{ stop coding immediately & & turn off your mobile/computer}; ;)
30th Nov 2018, 11:44 AM
Arcayno
Arcayno - avatar
+ 1
if the condition is true the statement get executed
27th Dec 2018, 7:40 AM
Aravindar G D
Aravindar G D - avatar
0
if Statement is one of the conditional statement,it can change the control of execution rather than sequential (default execution),,,, if Statement holds the condition,,,if the condition is true then only the block of statements will execute ,,,if not the statements after the if block will execute,,,,, Syntax: if(condition) { // block of statements }
22nd Nov 2018, 5:24 AM
Niveditha Javaniki
Niveditha Javaniki - avatar
0
Hello
4th Jan 2019, 8:33 PM
Ines
- 1
know your conditions
3rd Dec 2018, 2:03 PM
Lavonda Deason
Lavonda Deason - avatar
- 1
I find it surprising that this thread hasn't got the typical 'behave like this' link wall.
3rd Dec 2018, 2:04 PM
HonFu
HonFu - avatar