.

Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Saturday, April 21, 2012

[Python] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in Python programming language. This source code is to show how to do If-Then-Else statement in Python language. Here's the template:


if <condition>:
       <statement if true> 
else:
       <statement if false>




Okay, that's all I can say. Thank you for reading ^^!








[Python] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in Python programming language. This source code is to show how to do If-Then statement in Python language. Here's the template:


if <condition>:
       <statement if true> 




Okay, that's all I can say. Thank you for reading ^^!








Wednesday, March 14, 2012

[Python] Factorial

          Hello, Reader ^^! Back again with source code. This time is a simple Factorial. This time is with Python. Well, this one just doing a factorial calculation. It also checks whether the input is string or below 0. If that happens, error will occur. Plus, no result will be returned into the prompt. Okay, that's all I can say. Thank you for reading ^^!







Saturday, March 10, 2012

[Python] Hello World

          Hello, Reader ^^! Back again with source code. This time is a simple Hello World. This time is with Python. It's been a while too since I used Python to try a game engine using this xD. Well, it is time to warm up too with this programming language before starting with the main problem with this xD. Okay, that's all I can say. Thank you for reading ^^!