Basics
- CPU executes the instructions
- Memory (RAM) is where the data lives
Datatypes
- Datatypes internally help in selecting memory and Datatypes help in writing logic
- We have Datatypes for
- integers
- float
- boolean
- text/string
- Now we have other types
- list/array
- class
- struct
- dictionary
- Speaking with Ria
Remember 10 as a
a = 10

Ria knows the following
- Arthimetic
+
-
*
// (integer division)
/
% (remainder)
- Logical
== equals
!= not equals
< lt
> gt
<= le
>= ge
- Assigment
Remember 10 as a
a = 10
Example-1
- Lets calculate simple intrest
- Prompt
Show me how to calculate simple intrest step by step - Lets speak with Ria (Logic)
Remember 10000 as p
Remember 5 as t
Remember 24 as r
calculate p * t * r / 100 and remember as simple_intrest
say simple_intrest
- Execution: Watch the class room video
Example – 2
-
Lets make Ria convert Celcius to Farnhiet
F = (C × 9/5) + 32 -
Lets speak with Ria
Remember 42 as C
result = c * 9 / 5
result = result + 32
say result
- Exercises:
- Convert kilos into pounds
- Convert dollars into rupees
