Iterative statements are decision control statement that are used to repeat the execution list of statements. In python there are two types of iterative statements. while loop for loop While loop -repeats the statements while condition is True. #Q1 . WAP to print first hundred natural numbers. Q2. WAP to print 20 horizontal (*). Q3.Wap […]
Python is an extensive programming language in 2021.In this article we are going to discuss about OOPs Concept . Every things in python is Object oriented. Lets have look examples below first. If I click Run Here the above code, You will see that we have all our data types. But we have the Class […]
WAP to determine whether a person is eligible to vote.
Syntax Error: Syntax occurs when we have violate the rules of python and they are most kind of error that we get.Consider ex. Below In this formationed code, we have missed the “ : “ after function hello() . Try : Can you Fix now ? Logical Error: Logical error may occurs, specifies all those […]
Python Numbers Expression syntax is straightforward: the operators +, -, * and / work just like in most other languages (for example, Pascal or C); parentheses (()) can be used for grouping. For example: Note: Division (/) always returns a float. To do floor division and get an integer result (discarding any fractional result) you […]