Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,209,630 members, 8,006,651 topics. Date: Tuesday, 19 November 2024 at 09:23 AM

Learning Programming. (my Nairaland Journal) - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Learning Programming. (my Nairaland Journal) (26518 Views)

Some Months Into Programming, My Excruciating Experience. / Avoid The Hard Ways Of Learning Programming / Help I"m Loosing Intrest Fast In Learning Programming. (2) (3) (4)

(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply) (Go Down)

Learning Programming. (my Nairaland Journal) by syluck(m): 3:07am On Oct 26, 2020
Hustle till you no longer need to introduce yourself-

Deriving some intensive understanding from the above mentioned, I've come to realize that I need to keep pushing forward in my daily activities. To keep pushing forward till that moment when I don't need to stand up infront of someone or group of persons to introduce myself in a manner that will be awkward to my audience. A manner in which my audience will have that indifference feeling about me and wondering who am I and my mission. So in order not to allow this scenario come to play, I've decided not to be complacent.

A complacent satisfaction with the present knowledge is the chief barrier to the pursuit of knowledge - B H Liddell Hart.

In pursuit of more knowledge, I decided to involve myself into programming. This, I believe is a step to a milestone of success I will achieve.

19 Likes 4 Shares

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:15am On Oct 26, 2020
There's this burning desire in me that keeps sparkling and igniting everyday. It keeps tearing away the wings of failure. This burning desire has so far in the past few days made me have this solid faith of building and developing a website (a website I can't disclose for now.) In order to achieve this, I need solemnly and gracefully to become a programmer to be best of my knowledge.

The essence of this thread?

Simply put, it's my Nairaland journal where I will be listing and detailing every single bit of my programming life. Starting from learning aspects, to becoming a programmer and then building websites and other things a programmer can do.

7 Likes 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:24am On Oct 26, 2020
After going through the Nairaland "programming" section, there's this tutorial thread with explicit detailed information and classical snippets about a programming language called python. I won't lie, I don't know anything about that or why in the world would a programming language be called that. According the tutor and thread owner, he elaborated the usefulness of python in programming today. Quoting him directly, he said

The python Programming Language is one of the most sought for languages today. Reason is because it can be used for the following:
1. Web Development
2. Game development
3. Desktop Application
4. Android Development
5. Data Science/ Deep Learning/ Machine Learning


Below is the link to his thread.

https://www.nairaland.com/4945611/thread-tutorial-python-programming

23 Likes 4 Shares

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:28am On Oct 26, 2020
With just watching the first video clip of his tutorial, I was okay and convinced that I will learn so much from him. Googling also, I learnt that there are other profound programming language but I will certainly start with python.

9 Likes 2 Shares

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:38am On Oct 26, 2020
If you've read this and gotten to this point, I don't really know what to say but I will solicit that you don't derail this thread. The thread is mine and mine alone grin

I will only ask you to sit tight and read along if it interests you that much. wink

13 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:53am On Oct 26, 2020
This is my pc to start with

4 Likes 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 11:52am On Oct 27, 2020
Ok. Was banned yesterday for some reason I know not

Guess I won't be uploading pictures

1 Like 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 11:55am On Oct 27, 2020
So yesterday, I was able to decipher and crack open what command line is all about. Creating new directories and files using command line.

Judging by the command line guide, I know what these performs,

pwd
cd
cd .
cd ..
ls
-a
-l
rm
rm -r
mkdir
touch
rm
Etc

8 Likes 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:05pm On Oct 27, 2020
Still, I was able to understand numbers operations and how it works.

Still that yesterday, I was able to do some additions, subtraction etc in python. Knowing full well when my answers are in intergers or in floating point.

These signs below has its own meaning in python programming

% - modulo
// - interger division
** - exponentiation

5 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:16pm On Oct 27, 2020
I did learnt a lot yesterday, would have loved to upload some pictures but I think I will chop ban again embarassed. Cos I uploaded some command line workings on my pc, I was banned for a day and the post got deleted.

Over to today. Learning variables and strings in python
-understanding how to assign and learn.
-learning python variable.

Well, a python variable is used to hold a value.

x = 10
Days in a week = 7

The X and Days... is a python variable holding the values, 10 and 7 which is 17.

5 Likes 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:17pm On Oct 27, 2020
If you ask me, I will tell you that programming is all mathematics sad but in this case, a deep and practical mathematics. This practical aspect of it makes it more fun and exciting to work on. grin

7 Likes

Re: Learning Programming. (my Nairaland Journal) by SSIPON(m): 12:26pm On Oct 27, 2020
syluck:
This is my pc to start with
abeg no vex what's the name of your pc?

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:41pm On Oct 27, 2020
SSIPON:

abeg no vex what's the name of your pc?
Lenovo product grin

3 Likes

Re: Learning Programming. (my Nairaland Journal) by Sapeleboy911(m): 3:11pm On Oct 27, 2020
Yeah programming and computer science in general is mathematics and, your imaginations in action. Once you learn programming you will get to understand that computers and programmers are not magicians, and you will find out that computers are very very dumb. Like in the case of variable daysinweeks. Just a spelling, casing, or even a single space error. A no name defined error will pop on ur screen. All in all programming is fun. It forces you to be creative and imaginative .

19 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:17pm On Oct 27, 2020
Sapeleboy911:
Yeah programming and computer science in general is mathematics and, your imaginations in action. Once you learn programming you will get to understand that computers and programmers are not magicians, and you will find out that computers are very very dumb. Like in the case of variable daysinweeks. Just a spelling, casing, or even a single space error. A no name defined error will pop on ur screen. All in all programming is fun. It forces you to be creative and imaginative .

Wow, thanks for this. You've given more reason to be more enthusiastic about programming.

5 Likes

Re: Learning Programming. (my Nairaland Journal) by Sapeleboy911(m): 4:30pm On Oct 27, 2020
syluck:


Wow, thanks for this. You've given more reason to be more enthusiastic about programming.
You're welcome, but always remember you will face so many frustrating syntax errors with ver little or no meaningful error messages, learning programming and you will feel like quiting. Don't quit make google and stack overflow your best friends.

6 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:32pm On Oct 27, 2020
One important thing I learnt from again is that, any variable with two UNDERSCORES at the beginning and two at the end shows how important it is and shouldn't be altered.

3 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:41pm On Oct 27, 2020
Basically, was all about data type in python.
Where, Bool stands for True and false values, (I was able to decipher it easily on my visual studio code).
Int, stands for intergers.
Str, stands for strings. Which means a sequence of unicode character e.g "Caleb". In str, I was able to understand how a single quotation (') and a double quotation (") works in python, where and when it's needed.
Also, I understood the difference between a str and a int.

3 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:51pm On Oct 27, 2020
I won't also forget that fact that, in any assignments in python, assigned value must have a valid data type.

CONCATENATION OF STRINGS IN PYTHON?
lol, the first word sounds like incantations to me grin.
Well, concatenation of strings means combining multiple strings together using the addition operator.

We have what it's called 'escape character'. These are meta characters. They are interpreted by python to do something special. All escape character starts with a backslash '\'.

I did a lot of practice on concatenation of strings grin. Love it wink

3 Likes

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 11:20am On Oct 28, 2020
syluck:
I did learnt a lot yesterday, would have loved to upload some pictures but I think I will chop ban again embarassed. Cos I uploaded some command line workings on my pc, I was banned for a day and the post got deleted.

Over to today. Learning variables and strings in python
-understanding how to assign and learn.
-learning python variable.

Well, a python variable is used to hold a value.

x = 10
Days in a week = 7

The X and Days... is a python variable holding the values, 10 and 7 which is 17.






Hi, glad to see you are getting good mileage on your journey. Not trying to come across as snobbish, but I just want to correct an impression you have.
Variables are not containers, a variable is more like a label that points to a value. Values (integers, floats, boolean, strings) are stored in memory, so a variable points to a memory location. Don't just take my word for it, here is proof. There is a function in Python called identity - id(). id() is used to return the memory location of a particular value.

Exercise
Create two or more different variables, then assign the same value to each variable.

my_var = 34
another_var = 34
third_one = 34

print(id(my_var))
print(id(another_var))
print(id(third_one))

The value returned should be the same for the three print functions. The actual value will also depend on the particular system you run the code on.
Hope I have not confused you though, because this concept is very important.

10 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:59pm On Oct 28, 2020
naijasensei:


Hi, glad to see you are getting good mileage on your journey. Not trying to come across as snobbish, but I just want to correct an impression you have.
Variables are not containers, a variable is more like a label that points to a value. Values (integers, floats, boolean, strings) are stored in memory, so a variable points to a memory location. Don't just take my word for it, here is proof. There is a function in Python called identity - id(). id() is used to return the memory location of a particular value.

Exercise
Create two or more different variables, then assign the same value to each variable.

my_var = 34
another_var = 34
third_one = 34

print(id(my_var))
print(id(another_var))
print(id(third_one))

The value returned should be the same for the three print functions. The actual value will also depend on the particular system you run the code on.
Hope I have not confused you though, because this concept is very important.

If I'm not mistaken, what you are portraying is simply this:

Python variable helps point out those values stored in its memory not that it holds those values?

If it' doesn't hold those values, please I may be tempted to ask what then hold those values in python programming language?
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:03pm On Oct 28, 2020
naijasensei:


Hi, glad to see you are getting good mileage on your journey. Not trying to come across as snobbish, but I just want to correct an impression you have.
Variables are not containers, a variable is more like a label that points to a value. Values (integers, floats, boolean, strings) are stored in memory, so a variable points to a memory location. Don't just take my word for it, here is proof. There is a function in Python called identity - id(). id() is used to return the memory location of a particular value.

Exercise
Create two or more different variables, then assign the same value to each variable.

my_var = 34
another_var = 34
third_one = 34

print(id(my_var))
print(id(another_var))
print(id(third_one))

The value returned should be the same for the three print functions. The actual value will also depend on the particular system you run the code on.
Hope I have not confused you though, because this concept is very important.
secondly, I did exactly what you ask on my pc and it gave me the same value for the three print functions.

Lastly, in my cause of learning (which I am undertaking step by step) I'm yet to come across -id(), I believe I will with time and I also thank you for giving me a pre knowledge about it.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:52pm On Oct 28, 2020
So I tried practising on users input after much concatenations and formatting.

4 Likes

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 12:00pm On Oct 29, 2020
syluck:


If I'm not mistaken, what you are portraying is simply this:

Python variable helps point out those values stored in its memory not that it holds those values?

If it' doesn't hold those values, please I may be tempted to ask what then hold those values in python programming language?

Hi, sorry for the late reply. I got banned by the anti spam bot for posting my earlier reply.
Remember, you are on a computer. All the values that are used in a program are stored in the computer's memory. This is a general concept, and it is not specific or exclusive to the Python programming language.
When you create a program, all the values you use in your program are stored in memory, but to make it easy to reference or call such values you label them - with a variable. You can then get these values by using variables - which point to where the actual value is stored.
What I am explaining is a form of abstraction, it is a way of hiding complex things using simple concepts. Without this type of abstraction you will have to know about memory, memory locations, and memory addressing when writing your programs. The reason I pointed this out is because it will help you later in your programming journey, better to understand it now than later.

3 Likes

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 12:05pm On Oct 29, 2020
syluck:
So I tried practising on users input after much concatenations and formatting.

From your screenshot, there are indentation errors on the last two lines of your program. The 'else' should be on the same level of indentation as the previous 'elif'. You can even notice the 'else' is underlined with a red squiggly line to point out the error.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:15pm On Oct 29, 2020
naijasensei:


From your screenshot, there are indentation errors on the last two lines of your program. The 'else' should be on the same level of indentation as the previous 'elif'. You can even notice the 'else' is underlined with a red squiggly line to point out the error.


I saw it and corrected it before the code could read

1 Like 1 Share

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:41pm On Oct 29, 2020
naijasensei:


Hi, sorry for the late reply. I got banned by the anti spam bot for posting my earlier reply.
Remember, you are on a computer. All the values that are used in a program are stored in the computer's memory. This is a general concept, and it is not specific or exclusive to the Python programming language.
When you create a program, all the values you use in your program are stored in memory, but to make it easy to reference or call such values you label them - with a variable. You can then get these values by using variables - which point to where the actual value is stored.
What I am explaining is a form of abstraction, it is a way of hiding complex things using simple concepts. Without this type of abstraction you will have to know about memory, memory locations, and memory addressing when writing your programs. The reason I pointed this out is because it will help you later in your programming journey, better to understand it now than later.

Thanks man, I appreciate

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:35pm On Nov 03, 2020
This is my problem. I hope this doesn't get deleted.

I've been trying to run some codes using while loop on python. At the end of every false trying to make it true, it keeps running the false even after I might given the command when it's true.

Below is a screenshot

Re: Learning Programming. (my Nairaland Journal) by bovage(m): 4:16pm On Nov 03, 2020
syluck:
This is my problem. I hope this doesn't get deleted.

I've been trying to run some codes using while loop on python. At the end of every false trying to make it true, it keeps running the false even after I might given the command when it's true.

Below is a screenshot

Since, you have converted the string (input function returns string value of whatever is been given) to integer.

Your comparison should be
if user != 55:
--snip--

not "55"

4 Likes

Re: Learning Programming. (my Nairaland Journal) by Semtu(m): 5:20pm On Nov 03, 2020
syluck:
This is my problem. I hope this doesn't get deleted.

I've been trying to run some codes using while loop on python. At the end of every false trying to make it true, it keeps running the false even after I might given the command when it's true.

Below is a screenshot

You are passing 55 as a string.

And what were you trying to do with with second print statement?... You might want to work with python's f-strings

1 Like

(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply)

Web Developers / Freelaancers: How Are You Getting Paid From Outside Nigeria? / Build A Mobile App Without Knowing Any Programming Language or line of code. / How To Create A Shipping Tracking On Website.?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 62
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.