+ 1
If statements in python.....
I have just started python but I have previous experience with other programming languages such as JavaScript, C++ C# etc. first of all I wanted to ask if , If statements are normally used in python and if yes can I have help with this code? Thanks in advance!! đ https://code.sololearn.com/cQ3BtwXMKrZD/?ref=app
3 Answers
+ 3
Python recognizes blocks of code from indentation.
Everything in the if block needs to be indented so if you would use tab before print it works.
if x=="abc":
print("def")
+ 2
thank you davy hermans !!!đ
+ 2
my pleasure