According to Wikipedia A symbol in programming is a primitive data type whose instances have a unique human-readable form.
In this article we will have a close look at some of the most common symbols we encounter whenever we decide to write any program. Actually you did encounter some on your first ever program to write.
Lets get started:
The list :
- Semicolon ;
This symbol tells the compiler that you have reached the end of a statement. In simple words we can say it ends the line of code Curly Braces {}
This helps us group sections of code for use in different constructs. Care should be taken to always close an opened brace. In python they are also used in listing a set: exc = {7, 8, 9}
Brackets ()
They are commonly used to hold parameters or arguments for subroutines, the brackets can also be used for comparison as part of selection constructs. In python they are also used in listing a tuple listing: ex:b = (4, 5, 6)
Equal sign =
Assigns the value of a valuable to something else.Is equal to ==
Compares two values and returns True if they are the same.
<, <=, >=, > are also used for comparisons.Is not equal to !=
compares two values and returns True only if they are not the same. The symbol ! can be used as the logical concept NOT in most languages.Double Quotes " "
Used to denote that you are writing a string directly into the code. It allows you to store a combination of numbers, letters and symbols.Single Quote ''
Used to show that you are writing a single character directly into the code. It also allows you to store only one number letter, or symbol.Square Brackets []
They are used to define the use of an array. Note that array indexes starts at 0, so the first element of an array is array[0].
Like my work, Buy me ☕ HERE
If You have read this far I really appreciate:
Check out my other Blogs too:
- Useful Resources for Programmers and Web Developers
- Key Differences Between A Website and Web Application
- Know The Difference Between Coding and Programming
- Best Visual Studio Code Extensions For Web Developers
Connect With me at Twitter | Insta | YouTube | LinkedIn | GitHub
Do share your valuable opinion, I appreciate your honest feedback!
Enjoy Coding ❤