Skip to main content

Posts

Showing posts from 2018

Getting Started With Python (4) - Mathematics's Order, Comparison, and Logical of Operation

Order of Operations In mathematics operation, we should solve it in the following order : parentheses, exponents, multiplication, division, addition, and subtraction; which known as PEMDAS. It is important to know the proper order as it crucial for getting the correct answers when coding programs. where such operations are performed. Let's try using IDLE : Enter the following command :                         5+3*2 When you press ENTER , the result is 11. It is obvious that multiplication part comes first (3*2) and then adding 5, which result is 11. Let's try again with open another file from IDLE. On above examples there are two kind, which are : 5-3*2 and (5-3)*2 The results of the two statements above will be : Let's try other examples with exponent : There are two additional examples using exponential, 5^3*2 and 5^(3*2). The result between that two are : Comparison Operation We will try to practice about comparison operations, which co

Getting Started With Python (3) - Mathematics Operation

In this section, we will do some work on mathematical operation which are multiplication, division, addition, subtraction, modulus, exponent, and floor division . You might want to look at my previous post , it has some example of mathematics operations (arithmetic and algebra). On the editor window of Python, enter the following : a=35 b=22.78  Let's add these a and b together using the addition operator. For the recommendation practice, may we add a comment before the lines of code  #Addition print(a+b) print() Using subtraction operation : #Subtraction print(a-b) print() Save the file, run the module ( Run>Run Module ) or press F5 . The output will be : Next, we go with multiplication and division : #Multiplication print(a*b) print() #Division print(a/b) print() Save the file and run the file again, you will get the following output : Other operation that we will try is modulus , which is denoted by % sign. Modulus operator

Getting Started With Python (2) - Output of Print() function

After doing the installation and try on familiarize with IDLE Python and editor window, in this post, let's try to dig deep on print() function. Run the IDLE, Enter the following command :      print("Anityo Nugroho") The result will be :      Anityo Nugroho Next :      print("Anityo Nugroho","engineer") The result will be :      Anityo Nugroho engineer Another example which is variable :      blog="Beginner in Python"      print(blog) The result will be :      Beginner in Python The above example in IDLE : Let's combine variable with another string :      print(blog,"Anityo Nugroho") The result output will be :      Beginner in Python Anityo Nugroho Next, to try the output using integer :      print(25) It will give the output :      25 Other example using decimal number :      print(358.22458) Result will be :      358.22458 There is a difference in Python when we use strings and n

Getting Started With Python (1)

As per addition on my previous post on Python Basic Programming , I want to add how to download and install Python, running it, and create basic Python program. Download and Install Python You can visit official Python website,  https://www.python.org/ . The latest version, as per October 2018 is Python 3.7.1rc2 and I think it is advisable to start learning using latest version to avoid any problems with older, legacy version. Python officially release version on many platforms, like Windows, Linux, Mac OS, and iOS. Run IDLE (Integrated Development and Learning Environment) Python With this IDLE, let's start writing Python program :  Click File , then New File . We can also press Ctrl+N . A blank editor window will open. That is for us write the code.           Enter the following commands on separate lines :           print("Hello World")           print("Welcome to Python for Beginner!")           print("My name is Anityo")

HG 1/44 GUNDAM EXIA

This is my new assembly of Gundam Exia , one of main Mobile Suit Gundam from Mobile Suit Gundam 00 .  Gundam Exia, code name GN-001 is piloted by Setsuna F Seiei . During its anime series (50 episodes and 1 movie), it modified two times (Exia Repair and Exia Repair II). Here is the box of HG 1/144 Gundam Exia : And the result : With weapons : Lets pose it : Pose with weapon : With Exia Repair II :

SD EX-STANDARD OO GUNDAM (GN-0000)

After assembling the Gundam Exia SD-EX , now I am assembling a SD-EX 00 Gundam (from Mobile Suit Gundam 00 anime series) The completed one (after did assembly, put stickers, lining, did top coat)  :