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

Chapter 7 Notes

The document discusses variable assignment and types in programming, illustrating examples in Python and pseudocode. It covers different data types such as strings, integers, floats, and booleans, along with operations on these types. Additionally, it includes a simple user input/output example for adding two numbers.

Uploaded by

Cho cho Lwin
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)
3 views1 page

Chapter 7 Notes

The document discusses variable assignment and types in programming, illustrating examples in Python and pseudocode. It covers different data types such as strings, integers, floats, and booleans, along with operations on these types. Additionally, it includes a simple user input/output example for adding two numbers.

Uploaded by

Cho cho Lwin
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

Variable store

name= “Wai Yan”, Python

Name <- “Wai Yan”, Pseudo

=, <- : assignment operator

name= “Aung Bhone” // single value

name= [ “Aung Bhone”, “Wai Yan”, “Ni Ni”]// array, list

name= [“Aung Bhone”, “Wai Yan”]// str

age= 18

age=[12,23, 43, ,45]// int

Variable Types

1. String (str), (text)- “Aung Bhone”, “Good”, “12”, “12.34”


2. Character (char)- “C”, “A”
3. Integer (int)- 12
4. Float- 12.34
5. Boolean – True, False

12+3= 15 (int)

“12”+ ”3”= “123” (str)

“ab”+ “c”= “abc” (str)

OUTPUT “Enter a number”

INPUT Number

Ask two numbers from the user and add these


Counter Maximum Mark Minimum Mark two numbers. Output the
total numbers. Use
0 100
pseudocode or high- level
1 programming language.

You might also like