Introduction to Python Programming – Pseudocode

You can learn about Introduction to Programming Using Python Programs with Outputs helped you to understand the language better.

Introduction to Python Programming – Pseudocode


A pseudocode is a set of statements written in a human-readable language, expressing the processing logic of a program.
General rules used for writing pseudocode are as follows:

(a) Imperative sentence: The imperative sentences are used to show actions. For example: Add x to sum, Display result, sort list, calculate, etc.
(b) Operations: Mostly arithmetic operations ( +, -,*,/etc.) and relational operators(=,=>,=>,<,>,etc.) are used.
(c) Decision: IF, THEN, ELSE, CASE, ENDCASE are used for decision-making.
(d) Looping: The looping or repetition of statements is shown by FOR, WHILE, etc.

Example 2.
Display “selected for National scholarship Examination”
Display “selected for national scholarship Examination”
FOR roll to roll10DO
Display Roll, Name, Address

Example 3.
print if the candidate can vote or not.
IF age>=18
THEN Display “Can Vote:
Display “Cannot Vote”

Leave a Reply

Your email address will not be published.