Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,598,427 members, 6,030,900 topics. Date: Thursday, 03 December 2020 at 11:37 PM

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

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

After Learning Programming What Next?? / Avoid The Hard Ways Of Learning Programming / Help I"m Loosing Intrest Fast In Learning Programming. (2) (3) (4)

(1) (2) (3) (4) (Reply) (Go Down)

Learning Programming. (my Nairaland Journal) by syluck(m): 3:07am On Oct 26
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.

2 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:15am On Oct 26
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.

2 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:24am On Oct 26
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

4 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:28am On Oct 26
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.

2 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:38am On Oct 26
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

4 Likes

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

2 Likes

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

Guess I won't be uploading pictures
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 11:55am On Oct 27
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

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:05pm On Oct 27
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

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:16pm On Oct 27
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.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:17pm On Oct 27
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
Re: Learning Programming. (my Nairaland Journal) by SSIPON: 12:26pm On Oct 27
syluck:
This is my pc to start with
abeg no vex what's the name of your pc?
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:41pm On Oct 27
SSIPON:

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

1 Like

Re: Learning Programming. (my Nairaland Journal) by Sapeleboy911(m): 3:11pm On Oct 27
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 .

3 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:17pm On Oct 27
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.
Re: Learning Programming. (my Nairaland Journal) by Sapeleboy911(m): 4:30pm On Oct 27
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.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:32pm On Oct 27
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.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:41pm On Oct 27
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.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:51pm On Oct 27
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
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 11:20am On Oct 28
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.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:59pm On Oct 28
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
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
So I tried practising on users input after much concatenations and formatting.

2 Likes

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 12:00pm On Oct 29
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.
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 12:05pm On Oct 29
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.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:15pm On Oct 29
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

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:41pm On Oct 29
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
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
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"
Re: Learning Programming. (my Nairaland Journal) by Semtu(m): 5:20pm On Nov 03
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) (2) (3) (4) (Reply)

Meet Nigeria's Future Geeks. / Networking, Programming And Web Design; Which One Is More Marketable? / Best Programing Schools In Nigeria

Viewing this topic: GloryN2017(m)

(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 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 30
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.