Skip to main content

Input Statement

 Hey guys! I'm back! This post will be very interesting, as I'm gonna be telling you how to use input lines. An input line is when you ask the user to fill the value for a variable. So this very simple. We just need to use the input tag. Let me show you.


We also can do something called type casting in the input tag, where we can change the default string to any other data type. This is a sample code of 3 lines.





I hope that this post was interesting guys, see you later with more interesting topics, till then, bye.













Comments

Popular posts from this blog

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.

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...

If - Elif - Else

Hey guys, this will be my last post, thanks you for the support you have given me so far, if you still have doubts on Python after this, feel free to do your own research or contact me on my mail ID: abinav1708@gmail.com This post will be about if, elif, and else: These three are also a type of conditional operator. There will be a condition on everything except else, so we have to be very specific before putting it, as if none of the conditions listed above are true, the else factor will come into effect in the output. Let me show you a sample code, without output. So, we have to be very careful if we use these, so make sure that you go through my code properly to not make the mistakes I first made. This, especially, is a very delicate concept of Python. So, anyways, I hope you find my last post, and the entire blog insightful, it's been a nice time posting daily, I'll miss you all. This is Abinav, signing out. Goodbye!