0% found this document useful (0 votes)
4 views1 page

Introduction to Programming

The document outlines core elements of a programming program, emphasizing that raw_input is always treated as a string unless specified otherwise. It explains the use of conditionals such as if, else, and elif, as well as the distinction between assignment (=) and comparison (==) operators. An example is provided to illustrate the use of these concepts in code.

Uploaded by

tp33058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Introduction to Programming

The document outlines core elements of a programming program, emphasizing that raw_input is always treated as a string unless specified otherwise. It explains the use of conditionals such as if, else, and elif, as well as the distinction between assignment (=) and comparison (==) operators. An example is provided to illustrate the use of these concepts in code.

Uploaded by

tp33058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Core Elements of a Program

raw_input is always a string unless specified otherwise


Conditionals: if, else, elif

= used to do assignments; == used to do comparisons between objects (x = 3; if x%2 == 0)



You might also like