Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,897 members, 7,802,891 topics. Date: Saturday, 20 April 2024 at 01:59 AM

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

Nairaland Forum / Science/Technology / Programming / Learning Programming. (my Nairaland Journal) (25390 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)

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:30pm On Jan 08, 2021
yusman14:
To my own beginner understanding, after defining the function,the function takes/accept input known as parameters..Text is the only arbitrary parameters in the function,others are optional parameters which also indicates that the function can have default argument apart from "text"(which the user have to always enter)..others will be printed at default because they are optional parameters...if you return and print,you have to enter at least an argument for "text" parameter because it is not fixed to any value..other parameters can get values from users too but it is not compulsory for the user to enter a value because it is fixed..
the most important thing you should know is that OPTIONAL PARAMETERS COMES AFTER REQUIRED PARAMETERS.."TEXT" IS A REQUIRED PARAMETER HERE ..
I hope you understand...
This program will definitely return a dictionary if you print it .

Thanks bro. I appreciate

1 Like

Re: Learning Programming. (my Nairaland Journal) by yusman14(m): 10:58pm On Jan 08, 2021
naijasensei:


Excellent explanation. cool

@syluck, I hope you have read this. The screenshot you posted is simply referring to optional parameters (which always have a default value, and can be omitted), and compulsory parameters - which must always be provided. In the screenshot, the 'text' parameter is the only compulsory parameter, while the others are optional.

P.S. What's with returning a dictionary though? I suspect you are probably mixing somethings up.
Yh you are right sir ..it won't be a dictionary because of the required argument that has no keyword...so it won't return a dictionary... it will return a Tuple Instead...
Re: Learning Programming. (my Nairaland Journal) by Starkid3010(m): 11:10pm On Jan 08, 2021
syluck:
Came across this and I tried running the code.

Number 2 and 3 precisely. I'm having problem on both.

In Number 2, I ran the code according to the best of my knowledge but the only issue is having both the Fahrenheit and celcius on both (uppercase, lowercase, first letters both capital and small)

Then for number 3, I just need to understand how to implement the -273.15 when coding.

Thanks
please what's the name of this website I might find it useful also
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:44pm On Jan 09, 2021
Starkid3010:
please what's the name of this website I might find it useful also
Just search "python programming language pdf"

Then the picture below is the pdf I'm using

Re: Learning Programming. (my Nairaland Journal) by Starkid3010(m): 4:37pm On Jan 09, 2021
syluck:

Just search "python programming language pdf"

Then the picture below is the pdf I'm using
thanks for this boss I really appreciate. I will get it.
I just started python also maybe like 3 weeks, and I am done with papi' tutorial.. (I don't know why he didn't complete it)
What about you?
Well now I am using w3school and a top course from udemy...


Well I don't know if we can create a whatsapp group for python learner that will really help us alot or maybe if you're on one you can help me with it...
It's not easy learning this stuff alone!!
Re: Learning Programming. (my Nairaland Journal) by yusman14(m): 5:30pm On Jan 09, 2021
Starkid3010:
thanks for this boss I really appreciate. I will get it.
I just started python also maybe like 3 weeks, and I am done with papi' tutorial.. (I don't know why he didn't complete it)
What about you?
Well now I am using w3school and a top course from udemy...


Well I don't know if we can create a whatsapp group for python learner that will really help us alot or maybe if you're on one you can help me with it...
It's not easy learning this stuff alone!!
Yes I am in support of creating a WhatsApp group for beginners...you can create the group and we will drop our numbers..
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 10:33pm On Jan 09, 2021
Starkid3010:
thanks for this boss I really appreciate. I will get it.
I just started python also maybe like 3 weeks, and I am done with papi' tutorial.. (I don't know why he didn't complete it)
What about you?
Well now I am using w3school and a top course from udemy...


Well I don't know if we can create a whatsapp group for python learner that will really help us alot or maybe if you're on one you can help me with it...
It's not easy learning this stuff alone!!
I'm not on any WhatsApp group. I've been searching also for it... I don't think I want to be on any one...

Yeah it's not easy learning it alone, all u have to do is keep pushing. When it's 'too much' for the brain, close everything, relax, take a rest, you can make it long enough. Then suddenly think about being a bigger programmer in the next 8 months, creating things unimaginable. This alone will push you to keep learning. It has been helping me. And the sweetest of it all? When you are able to run that code that has been bothering you.
It's my second month of learning, I'm working in a supermarket, and it hasnt been easy for me. I've improved than I was when I started.
This forum has helped me a lot to decipher some algorithms bit by bit. You can create ur own thread and ask questions when lost. To become a better programmer, u must ask questions and practice.

1 Like

Re: Learning Programming. (my Nairaland Journal) by Starkid3010(m): 6:17am On Jan 11, 2021
yusman14:
Yes I am in support of creating a WhatsApp group for beginners...you can create the group and we will drop our numbers..
yeah if you guys want it.. You can drop your numbers here then I will add you to the group
Re: Learning Programming. (my Nairaland Journal) by Starkid3010(m): 6:21am On Jan 11, 2021
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
add break or pass after
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 6:40pm On Jan 11, 2021
Starkid3010:
yeah if you guys want it.. You can drop your numbers here then I will add you to the group
Well, I don't mind joining.

0.8.1.0.8.8.3.6.1.0.2 WhatsApp contact
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:03pm On Jan 11, 2021
naijasensei:


Excellent explanation. cool

@syluck, I hope you have read this. The screenshot you posted is simply referring to optional parameters (which always have a default value, and can be omitted), and compulsory parameters - which must always be provided. In the screenshot, the 'text' parameter is the only compulsory parameter, while the others are optional.

P.S. What's with returning a dictionary though? I suspect you are probably mixing somethings up.
Bro, I want to ask you this question, it's been bothering me for a while.

I'm on the edge of becoming a pythonista real big. One big question I'll like an answer from a second/third party is, After Python what next?
Like, after I'm done learning python, what should I involve myself with next? Is it learning frameworks like node.js, PHP, JavaScript, Django etc.
For the record, I solely learnt python so that I can be creating websites(website like Spotify, pandora, audiomack, onlyfans etc) and apps. Now, I came across things like AI, and cyber security which I'll like to be an expert in. So I'm just confused on what next I should indulge in.. I'll really like an elaborated and explicit explanations on this.
Thanks

Cc:
Karleb
Semtu
Re: Learning Programming. (my Nairaland Journal) by Karleb(m): 9:04pm On Jan 11, 2021
@syluck

Be candid with yourself, there are a lot of things you've not covered in python and many of these are what you'd encounter in other programming languages.

So it's better you pick a good python book and read it extensively before thinking of moving to the next big thing, you can't jump guns with programming. If you do, you'd still go back and relearn what you skipped.

AI, cyber security and web development are three different routes.

After honing python basics, then the next thing to learn is Django. It's python most popular web development framework.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:04am On Jan 12, 2021
Karleb:
@syluck

Be candid with yourself, there are a lot of things you've not covered in python and many of these are what you'd encounter in other programming languages.

So it's better you pick a good python book and read it extensively before thinking of moving to the next big thing, you can't jump guns with programming. If you do, you'd still go back and relearn what you skipped.

AI, cyber security and web development are three different routes.

After honing python basics, then the next thing to learn is Django. It's python most popular web development framework.
Thank you. I appreciate
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 11:44am On Jan 12, 2021
syluck:

Bro, I want to ask you this question, it's been bothering me for a while.

I'm on the edge of becoming a pythonista real big. One big question I'll like an answer from a second/third party is, After Python what next?
Like, after I'm done learning python, what should I involve myself with next? Is it learning frameworks like node.js, PHP, JavaScript, Django etc.
For the record, I solely learnt python so that I can be creating websites(website like Spotify, pandora, audiomack, onlyfans etc) and apps. Now, I came across things like AI, and cyber security which I'll like to be an expert in. So I'm just confused on what next I should indulge in.. I'll really like an elaborated and explicit explanations on this.
Thanks

Cc:
Karleb
Semtu


Karleb:
@syluck

Be candid with yourself, there are a lot of things you've not covered in python and many of these are what you'd encounter in other programming languages.

So it's better you pick a good python book and read it extensively before thinking of moving to the next big thing, you can't jump guns with programming. If you do, you'd still go back and relearn what you skipped.

AI, cyber security and web development are three different routes.

After honing python basics, then the next thing to learn is Django. It's python most popular web development framework.

I agree with what @Karleb said. Try and focus on one thing so that you can master it. You mentioned web development, which is a path or route. AI, Cyber Security, Machine learning, Mobile App development, and Data Science are some other paths.
To continue using Python for web development, there are two major frameworks you need to get familiar with - Django, and Flask. Django is a full fledged, everything (batteries) included framework, that can be used to develop all manner of web apps. Flask on the other hand is a micro framework, which is best for developing APIs.

In the web development domain, there are two(2) main areas - front end development, and back end development. Back end development takes care of interactions with your web server, interactions with your database server, and interactions with your server environment. Front end development basically has to do with things that happen in the browser, and the User Interface.
Python is used for back end web development, other popular alternatives are PHP and NodeJS. I personally use PHP for web development for two(2) reasons: it was the first web development language I learnt, and web development is PHP's primary domain. I won't bore you with pointless arguments for and/or against Python, PHP, and NodeJS. I believe in using the best tools for the job, and I use whatever gets the job done.
To round off your skills in web development, you will need to get a solid grasp of HTML, CSS, and Javascript for front end development. You can then decide which type of development you prefer, or you can combine the two to become a full stack developer.

4 Likes

Re: Learning Programming. (my Nairaland Journal) by trippleXXL(m): 12:01pm On Jan 12, 2021
Please can you recommend anywhere on Lagos Mainland where one can learn coding from beginner level.
Re: Learning Programming. (my Nairaland Journal) by Semtu(m): 6:40pm On Jan 12, 2021
syluck:

Bro, I want to ask you this question, it's been bothering me for a while.

I'm on the edge of becoming a pythonista real big. One big question I'll like an answer from a second/third party is, After Python what next?
Like, after I'm done learning python, what should I involve myself with next? Is it learning frameworks like node.js, PHP, JavaScript, Django etc.
For the record, I solely learnt python so that I can be creating websites(website like Spotify, pandora, audiomack, onlyfans etc) and apps. Now, I came across things like AI, and cyber security which I'll like to be an expert in. So I'm just confused on what next I should indulge in.. I'll really like an elaborated and explicit explanations on this.
Thanks

Cc:
Karleb
Semtu


Good job man. If you are confident in your python skills already, then feel free to dive into any of the numerous career paths in python. Just try and focus on a single thing. Now you said your initial idea was to make use of python for web app development. Well, its best you stick to that for a start.

Web app development is a very nice field and catch fetch you quick money much faster than learning AI or Cybersecurity. Now, first thing is to learn web development. To do this with python, there are two very popular frameworks commonly used: Flask and Django. I'll recommend Flask for beginners since it's a mini-framework, less sophisticated than Django, making it easier to understand. Even before going into Flask, learn HTMl, CSS and Bootstrap for your frontend. If you want to be strictly a backend developer, still learn a bit of frontend, it's very important. After learning all the above, then you are already a competent web developer.

Going further, if you want to push you web development career up the notch, you'll start looking into AI and Cybersecurity. Most websites nowadays makes you of some form of AI algorithm. For instance, if you want to develop an app like audiomack, you'll need sophisticated AI recommender systems. Also cybersecurity comes into play.

To round it off, everything is interlinked. I'd recommend this journey for you;
1. Learn Frontend ( HTML, CSS, JS)
2. Learn Backend and linking up with the frontend (with Flask or Django frameworks )
3. Learn AI to boost your web development prowess.
4. Then learn Cybersecurity as the topping on the cake.

4 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:29am On Jan 13, 2021
Semtu:


Good job man. If you are confident in your python skills already, then feel free to dive into any of the numerous career paths in python. Just try and focus on a single thing. Now you said your initial idea was to make use of python for web app development. Well, its best you stick to that for a start.

Web app development is a very nice field and catch fetch you quick money much faster than learning AI or Cybersecurity. Now, first thing is to learn web development. To do this with python, there are two very popular frameworks commonly used: Flask and Django. I'll recommend Flask for beginners since it's a mini-framework, less sophisticated than Django, making it easier to understand. Even before going into Flask, learn HTMl, CSS and Bootstrap for your frontend. If you want to be strictly a backend developer, still learn a bit of frontend, it's very important. After learning all the above, then you are already a competent web developer.

Going further, if you want to push you web development career up the notch, you'll start looking into AI and Cybersecurity. Most websites nowadays makes you of some form of AI algorithm. For instance, if you want to develop an app like audiomack, you'll need sophisticated AI recommender systems. Also cybersecurity comes into play.

To round it off, everything is interlinked. I'd recommend this journey for you;
1. Learn Frontend ( HTML, CSS, JS)
2. Learn Backend and linking up with the frontend (with Flask or Django frameworks )
3. Learn AI to boost your web development prowess.
4. Then learn Cybersecurity as the topping on the cake.

I appreciate brother
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:29am On Jan 13, 2021
naijasensei:




I agree with what @Karleb said. Try and focus on one thing so that you can master it. You mentioned web development, which is a path or route. AI, Cyber Security, Machine learning, Mobile App development, and Data Science are some other paths.
To continue using Python for web development, there are two major frameworks you need to get familiar with - Django, and Flask. Django is a full fledged, everything (batteries) included framework, that can be used to develop all manner of web apps. Flask on the other hand is a micro framework, which is best for developing APIs.

In the web development domain, there are two(2) main areas - front end development, and back end development. Back end development takes care of interactions with your web server, interactions with your database server, and interactions with your server environment. Front end development basically has to do with things that happen in the browser, and the User Interface.
Python is used for back end web development, other popular alternatives are PHP and NodeJS. I personally use PHP for web development for two(2) reasons: it was the first web development language I learnt, and web development is PHP's primary domain. I won't bore you with pointless arguments for and/or against Python, PHP, and NodeJS. I believe in using the best tools for the job, and I use whatever gets the job done.
To round off your skills in web development, you will need to get a solid grasp of HTML, CSS, and Javascript for front end development. You can then decide which type of development you prefer, or you can combine the two to become a full stack developer.

Thanks man
Re: Learning Programming. (my Nairaland Journal) by Starkid3010(m): 3:16pm On Jan 22, 2021
Stuck here please help


Using OOP, design a GPA Calculator.

The names, levels, departments, and courses offered by the students should be accepted.

Assumptions: All students offer at least 7 courses.

Create a method to display the last name of the students and their GPA

Create a method which compares the GPA of student with another student and notify the student with the higher GPA indicating the full name of this student and the GPA
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:57pm On Feb 03, 2021
Yes. I can code!!!!!

3 Likes

Re: Learning Programming. (my Nairaland Journal) by Plaouse(m): 10:59pm On Feb 08, 2021
syluck:
Yes. I can code!!!!!

Congrats! smiley

1 Like

Re: Learning Programming. (my Nairaland Journal) by Plaouse(m): 11:02pm On Feb 08, 2021
Programiz. Haven't heard of it.

Let me check it out. This Python Crash Course ain't exciting me.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:52pm On Feb 09, 2021
The question. The code. The result

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:54pm On Feb 09, 2021
The question. The code. The result.

1 Like

Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 2:17am On Feb 10, 2021
Syluck, I just started learning too and I tried to solve the question you did to practice and see if I could do it differently.

To your question 8, I merged your code lines 7, 10, 11 and 12 as one.
For the result, I used a formatted string to keep it s3xy. cheesy

Keep pushing, we are following, I'll find time to see if I can do your question 9 differently.

1 Like

Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 3:35am On Feb 10, 2021
Question 9:
I merged your lines 3, 6, and 9 into two lines. Your line 3 nearly blinded me. cheesy

I didn't like your solution line 'tip amount' running into a thousand digits grin so I looked around on the internet for something suitable and got my code lines 7 and 8 and this reduced my decimal places to two [Endeavor to check the internet for tips].

Now a problem, couldn't format my print statement as one line of code as the 'decimal formatting' didn't allow me to mix both.
Too tired from a long work day to task my brain, I will leave that for you to solve - try formating your 'tip amount' and print all as one line so we can see.

Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 3:52am On Feb 10, 2021
Still on Question 9:

Using one line of code to print results on two lines don scatter my head (see line 10). Will tackle it later.

If printing the tip and total on same line is allowed (see line 8 ), I score myself 10/10. cheesy

1 Like

Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 5:00am On Feb 10, 2021
Starkid3010:
Stuck here please help


Using OOP, design a GPA Calculator.

The names, levels, departments, and courses offered by the students should be accepted.

Assumptions: All students offer at least 7 courses.

Create a method to display the last name of the students and their GPA

Create a method which compares the GPA of student with another student and notify the student with the higher GPA indicating the full name of this student and the GPA
Post what you have coded for constructive criticism and rework.

I started learning afresh 6weeks back (previously did SQL to an extent in 2017 and forgot all of it) and just started with Python now.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:59am On Feb 10, 2021
MackyNaija:
Syluck, I just started learning too and I tried to solve the question you did to practice and see if I could do it differently.

To your question 8, I merged your code lines 7, 10, 11 and 12 as one.
For the result, I used a formatted string to keep it s3xy. cheesy

Keep pushing, we are following, I'll find time to see if I can do your question 9 differently.

Lol, yours is more clear and easy though. But there are many path that leads to the stream, innit?? Lol
I like how you merged everything into the list instead of appending. I never thought of that tbh, it was just "append" that came through my mind. The format is sweet just that I don't really use format. I like explaining from the scratch when using the print() built in function. I will try using the format function.

I think I will be dropping more questions here, so that you could try them as well grin

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 10:30am On Feb 10, 2021
MackyNaija:
Question 9:
I merged your lines 3, 6, and 9 into two lines. Your line 3 nearly blinded me. cheesy

I didn't like your solution line 'tip amount' running into a thousand digits grin so I looked around on the internet for something suitable and got my code lines 7 and 8 and this reduced my decimal places to two [Endeavor to check the internet for tips].

Now a problem, couldn't format my print statement as one line of code as the 'decimal formatting' didn't allow me to mix both.
Too tired from a long work day to task my brain, I will leave that for you to solve - try formating your 'tip amount' and print all as one line so we can see.


I used the format function here, same line

Modified* I made a mistake in printing the "tip needed" as "$78" instead of "%78".

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:21pm On Feb 10, 2021
This is my code.

I will love to know if there's another way this program could be coded.

Cc:
Karleb
Naijasensei
Semtu
Yusman14

2 Likes

Re: Learning Programming. (my Nairaland Journal) by Karleb(m): 2:35pm On Feb 10, 2021
@syluck

One way I I'm thinking is to set a value1 and value2 variables and assign them to randomly generated numbers. You could set the range of these two numbers as you deem fit.

Multiply these numbers and set them into a list or dictionary. The reason is to prevent question repetition. So you'll check if the new values are same as any previous values. If they are, you'll generate another. I don't know how necessary this step is sha.

Loop from 1 to 10 and ask your questions.

I'll code this when I get closer to my laptop.

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

Whats The Best Laptop For Programming? / Best Operating System For Programming! / Testing Programmers: Puzzles Or Web Applications?

(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. 86
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.