Skip to main content

Comment Line

Hey guys. This post is very important, as I'm gonna tell you about comment lines and their uses. We can comment on a particular line by slashing or hashing it. However, in Edublocks, the first option won't work, so we have to hash the  comment line. Although the comment line has no impact on the output, it might prove useful to the user, as it can inform him as to what the code is about. Let me show you.


Sorry if this post was abrupt guys, but that's all. Do stay tuned for my next post, I promise to make it interesting.


Comments

Popular posts from this blog

Introduction to Python

Hi! I'm Abinav! Have you ever heard the word Python before? I'm sure you have. So what do you think it means? Well, it means two things: 1. A venomous snake 2. An incredibly mind-boggling code language. Don't be scared! We're not gonna focus on the snake, we'll get to know the language instead! OFF-TOPIC ALERT ! Although we're not focusing on it, let me just tell you this. The snake is actually not venomous, it is our misapprehension that it is dangerous, in fact, ball pythons are incredibly common pets. However, pythons constrict and kill, so they are still dangerous... but let's not get too distracted. Back to the language. WHAT IS PYTHON? Python is an interpreter based code language founded and released in 1991 by Guido van Rossum, a Dutch web developer. Hang on! What to all these fancy terms mean? Stay tuned for my next post to understand. Oh, dang, I forgot to tell you something! Why is Python preferred over other code languages? Well, there are many re...

Basic Concepts of Python

Hey guys, I'm back with some more interesting stuff for you. Hope you're excited. So let's begin! So, today I'm gonna be telling you about a few basic concepts of Python and the terms used in the language. 1. Datatype This is self explanatory, a data type is a type of data! There are many datatypes, out of which I'll tell you only some. - String (Any Type of Text) - Integers (Numbers without Decimal Point) - Float (Decimal Numbers) - Boolean (True or False) - Many More 2. Variable This name is derived from algebra, a variable is unit that can hold any value / datatype, like string, integer, or float. 3. Conditional Operators There are many conditional operators. I'll tell you more on this later. HOW DOES PROGRAMMING IN PYTHON LOOK? The Python syntax, also known as code text, looks very similar to the English syntax, as I mentioned in my previous posts. This makes it easy to learn. It also has has fewer code line requirement, which makes it very easy to prototype...

Interpreter Based and Compiler Based Languages

Hey y'all! I'm back. This time, with something more interesting.  Let's learn about the differences between the compiler based and interpreter based languages. Let's start guys! So what are interpreter based and compiler based languages? An interpreter based language scans each line of the code for an error. If it finds one, it will stop scanning further and highlight the error. Whereas, a compiler based language will scan the whole code and then check for errors, and will just display error, as a whole. It won't specify in which line and what the error is. So that's why the interpreter based languages like Python are far more preferred than compiler based languages (Like HTML). They are more user friendly and accurate. Stay tuned for my next post guys, hope this one was informative. Till then, goodbye.