
There are hundreds of courses out there, but why take this course?
This is the best asset of a programmer. Why logic would propel you to become a programmer.
Python is what we'll be using. Here's how to install it on your machine. Here's the link for the download.
https://www.anaconda.com/distribution/
This is the basics in any programming language, to output to user and input from user.
One of the framework of any program. There are some rules though and Python has a strict one.
Understanding the different data types will make it easier to plan the flow of the program.
Computations frolic in almost every type of program, from small to very large software systems.
The cornerstone of a program flow. You will need to make them from time-to-time.
What if you need to have a collection of data? Lists are a good alternative, and easy-to-use at that.
One of the best tools you could have. Why use the For Loop?
Why While loops are useful, especially for games!
Flowcharting not only helps you understand how your program flows, but helps you go back to it if you're lost.
Sounds like a simple text data type, but there are so many things you could do and may be complex the more you need them.
Sounds intimidating at first, but Python can help it become easier.
Need to generate a random number? Most programming languages offer them. Here's how to do it in Python.
Here's a good starter program for everybody, especially beginners.
Another simple problem and easily complete in all programming languages.
A slight variation from the previous lesson. Getting the average involves more than one operation now.
We're working with numbers and this time, we'll go a bit past operations. Functions are there to help us out run harder flows.
How do you think is the best way to display a range of number with the same difference or interval? Yes, loops!
Now let's combine the two! Operations and loops.
It's not recommended to do this when you're programming for your work. But for learning purposes, this will help you build your program flow mastery.
Let's step back a bit and do another mathematical operation.
Another flow where we need to iterate numbers, but this time, a combination of 2 loop variable.
Here's a concept on counters. Counting how many times you've iterated is very useful and mastering this craft may take a while, but you'll thank yourself if you do.
You've come across this sequence at school. How do you translate it into code?
It's basically arithmetic sequence, but this time, using multiplication.
Sounds really easy. But what if you have lots of data? The task would be daunting visually.
Let's have a new twist. Let's use loops in a different way and we'll now be using a placeholder variable.
You probably have seen this sequence a few times. Yes, Da Vinci Code. Translating it into code sounds daunting, but with the help of placeholders and loops, it would be a cinch.
We're now done with most of the number problems. I hope you've been able to have a firm grasp of the basics of arithmetic in programming. Now, let's deal with letters, words and strings.
Let's start with a very easy one, determining how long a string is.
Now let's kick things up a bit. Instead of the whole string, get the length of each word in it. Let me introduce the split.
Most programming languages, if not all, have a function to do this. But in order to practice your logic and flow mastery, let's do it in a programmatic way.
Let's make use of more functions. This time, determine not just only the split but the words that are uppercase and lowercase.
Again, let's take a few steps back. We know how to split now, right? Let's count them now. I see a combination coming.
Let's combine further! This time, a loop, a placeholder, decision-making, splitting and knowing the length.
Date and time data types sounds intimidating at first. Try to determine how many hours are left from today to a certain date. Even the number of days can be really hard, especially if you cross months. But don't worry, we can do it in Python.
So now, let's apply it. Let's count the number of days until a certain date.
Don't worry, going further by counting the hours, minutes and seconds before a certain date may be hard, but it's easy to learn.
Here's a really simple game. Guess the random number the computer generates. Here's to the concept of random numbers.
Now this is really becoming a game. Guess the number, but you only have 5 tries to do so.
Here's a game that almost everyone knows. It may get complicated but with the help of the flowchart, it will get you back on track.
Time to do completely it on your own. Here are the codes, but please try it first before checking. It may be different, even the flow, but it gives you more perspective on how to tackle a programming task.
Hope you've enjoyed and learned more about computer programming through the concepts and drills we've made. Special thanks to all of you and watch out for updates and for more lessons. Have a good one!
Thanks to Pixabay for some of the images.
Computer programming involves several key elements such as mastery of the syntax, familiarization with the data types, firm grasp of the program flow and problem-solving skills. This course will get you up to speed with your problem-solving skills by providing you simple programming exercises and problems that cater to all types of programmers.
Oftentimes, new programmers are overwhelmed by the number of languages, scripts, reserved words or commands, but no worries. In today's connected word, there's no need to memorize as there is a vast number of resources available. We will help you understand the skill needed to tie it all together and solve a need through programming.
The key to programming is the skill in reaching a solution for a problem. You will discover there are several paths to a program, and as you improve your programming skills, you will discover them and find the best and most effective solution.
Python is one of the most prevalent programming languages today and we'll get you started with some of the basics of the language and core fundamentals before we dig into the exercises. It is quite easy to understand, and the dynamics and overall structure of the language is not that difficult to adapt to.