When you use ‘for’, it will print out whatever you have written in the list or tuple.

For example

The alphabet ‘i’ in the example could be anything

You can change it to anything else and it will work the same

Not just using ‘for’ to print out the element…



When you repeat and get the output of the same sentence over and over to the point you set, you use ‘while’ rather than ‘if’

example while

This example gets outputs of 1, 2 .. up to 9 because if a reach the number of 10, it stops since it…



When the outcomes are different by different acts or different inputs, we use ‘if’ to set the right outcomes for each acting

example ‘if’

Also use it to distinguish particular numbers into different categories, such as odd or even.



There are two parts in dic(dictionary), key and value

when you set a dic, and type key, then python will automatically print the value

Python will print 맑음

To type key and get value for output, you should create a blank dict and add key and values to dict and…



Both list and tuple are to make a group of some type of things:

list: top, tuple: bottom

Difference between two:

words or letters in the tuple are immutable

words or letters in the list are mutable

tuple doesn’t require parenthesis


Could delete, add, or edit the things in…



Everything that you write inside ‘’, or “”, those are all to be categorized into strings

Can declare string like numbers, and can add different strings to one like:

setting string example

If you want to include a quotation mark or double-quotation mark, you can put a backslash(\) before ‘…



There are two different types in number, which are integer, and floating-point

Integer: Using the whole number

Floating-point: Using the decimal number

You could declare numbers to alphabets and could calculate in python like:

adding numbers example

Different mathematical expressions into python

^ = **

To find remainder = % Ex) 7 %…