Skip to main content

About python's programmatic flow

Is python object-oriented? - Yes.

So does it follow the object-oriented style programmatic flow?
Lets check out.

Here I have a short python code.



Let's see the 6th line.
If we call the function above the function itself, it will return the error which looks like this;



This occurs because its called above the repeat_lyrics(); 's initialization.

So from this, we can comprehend that python is a object-oriented language, but the programmatic flow doesn't follow the object-oriented style flow.

Its complicated to work with this, (this probably is a bad practice) just call all functions above the working code.

Popular posts from this blog

Using SyntaxHighlighter on Blogger

Hello, Bedrock Dev here. Today I'm going to show you guys how to use SyntaxHighlighter on Blogger (Just like me!). But, what is SyntaxHighlighter? Simply, it is a code-highlighter for webs (and other). And this is an example of it. So, let's get started adding this cool stuffs on your blog too.   1. Backup your blog templates You can backup your blog templates on your blogger main page. On the right top of the Template page, you could find Backup / Restore Button. Click it and save the template file where you can find later.   2. Adding codes to your blog html Now the real part begins. Copy these codes to your clipboard. And then, go back to the Template page, and click Edit HTML Button. In your blog's template html, there will be </head> tag. Scroll down and find the tag, and paste the code you copied. --- Other Codes --- [Paste the code here] </head> You should paste the code like this. Then, save your template.   3. Usin...

About bitwise and bit shift operands

We are getting to know about Java's basics. Java has the bitwise operators. (which all other advanced programming language do either) There are several operands of them. Bitwise operators & opreator Performs an and calculation between data bits ^ opreator Performs an or calculation between data bits | opreator Performs a xor calculation between data bits ~ operator Inverts all data bits Bitshift operators << operator Shifts the bit pattern to the left >> operator Shifts the bit pattern to the right >>> operator Shifts the zero to the leftmost position These are the opreators. which is never used. Even the Java Documentation says these are "less commonly used". So just make sure you 'heard' of these exists. Check out more about these operators here: Official Java Documentation

Presentation about Heap Sorting

This was a presentation for Sunrin High school Programming class. View the original zip file on Google Drive (Contains the sorting visualization tool and the C code) Thanks