Learn Python – Collection of data ( List, Tuple and Dictionary) – part 1

I have tried learning how to declare the variable and assign value in python in the first post and then how to write if else in python and in the third post tried hands-on iteration (for loop & while loop) in python. Now I want to go little further and want to try something where … Continue reading Learn Python – Collection of data ( List, Tuple and Dictionary) – part 1

Learn Python – Iteration (for loop, while loop)

In my previous post variables and conditional statement covered. Now let’s see Iteration (for loop, while loop) So many ways I can use for loop I can iterate through string like this for character in “Nikhil”:       print character Output: N i k h i l Also, I can iterate through an array numbers … Continue reading Learn Python – Iteration (for loop, while loop)

Learn Python – conditional statement ( if, if else )

Now I am looking for second best thing in any language. It is a conditional statement. Conditional statement makes our conversation more interesting and plays important roles to conclude conversations (Sometimes 😛). This helps same way in programming languages too. If student_passed = true if student_passed: print(“Congratulations!!!”) If… else student_passed = true if student_passed: print(“Congratulations!!!”) … Continue reading Learn Python – conditional statement ( if, if else )