Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,579 members, 7,809,097 topics. Date: Thursday, 25 April 2024 at 11:04 PM

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

Nairaland Forum / Science/Technology / Programming / Learning Programming. (my Nairaland Journal) (25424 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 GreaterDC(m): 6:25am On Dec 20, 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
sory to ask, what IDE IS THIS?
Re: Learning Programming. (my Nairaland Journal) by Etinosa1234: 7:09am On Dec 20, 2020
ambitiouschap17:


Hello boss, which app is this

Java N-ide
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:15am On Dec 20, 2020
MDBrand:

Are you attending classes or video tutorials?
No classes.
I'm learning it on my own but with the help of video tutorials, pdfs, and of course here on Nairaland.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:15am On Dec 20, 2020
GreaterDC:
sory to ask, what IDE IS THIS?
Pydriod 3. It's for Android phones

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:20am On Dec 20, 2020
BigDawsNet:
This is wonderful
Thanks
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:22am On Dec 20, 2020
Mrmourinho:

Do you have the link for JavaScript learning, I prefer JavaScript, Don't just know why...Buh which one do u think it's advisable for me to learn? Js or python?
I'm sorry I don't.
But YouTube will be of great help
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:24am On Dec 20, 2020
thatNigerian:


What learning resources do you use?

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

Then, a pdf's
And here on here on Nairaland

1 Like

Re: Learning Programming. (my Nairaland Journal) by KingAbdulazeez: 2:01pm On Dec 20, 2020
bosses in the house I want to put the float input in the input function in the print function . for example I input 60, I want the print function to update the value.

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 2:39pm On Dec 20, 2020
KingAbdulazeez:
bosses in the house
I want to put the float input in the input function in the print function .
for example I input 60, I want the print function to update the value.

Re: Learning Programming. (my Nairaland Journal) by KingAbdulazeez: 4:02pm On Dec 20, 2020
[quote author=naijasensei post=97259051][/quote] Thank you boss for you time more power to your elbow. more precisions in your codes.

1 Like 1 Share

Re: Learning Programming. (my Nairaland Journal) by chineduuf: 4:51pm On Dec 20, 2020
All in all... In as much as it is a very loooooong thread. It is your enthusiasm that caught my attention. That, your pc and your brain are all you need to succeed! Cheers mate. I look forward to work with you sometime soon.

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:24pm On Dec 20, 2020
chineduuf:
All in all... In as much as it is a very loooooong thread. It is your enthusiasm that caught my attention. That, your pc and your brain are all you need to succeed! Cheers mate. I look forward to work with you sometime soon.
Thanks bro
Re: Learning Programming. (my Nairaland Journal) by yusman14(m): 1:58pm On Dec 21, 2020
syluck:
Q. Write a program that asks the user to enter a password. If the user enters the right password,
the program should tell them they are logged in to the system. Otherwise, the program
should ask them to reenter the password. The user should only get five tries to enter the
password, after which point the program should tell them that they are kicked off of the
system.

I used both loops, for and while loop
See below
This is my solution..but how can we make a program in the sense that after the user enters the incorrect password 5 times,it will print a new statement (not the else statement output)..
hope you understand?

Re: Learning Programming. (my Nairaland Journal) by cosmos2000(m): 7:22pm On Dec 25, 2020
MacDodger:
pycharm makes you more productive
[s][/s]
But why is they Configuration so difficult and I tried using it with Cmd...it requires me adding it to path way...I did yet it the command prompt couldn’t recognize it(�‍♂️�‍♂️) please help your follow programmer..?
Re: Learning Programming. (my Nairaland Journal) by MacDodger: 8:28pm On Dec 25, 2020
cosmos2000:
[s][/s]
But why is they Configuration so difficult and I tried using it with Cmd...it requires me adding it to path way...I did yet it the command prompt couldn’t recognize it(�‍♂️�‍♂️) please help your follow programmer..?
i would advice you to watch videos on YouTube for an easy guide
Re: Learning Programming. (my Nairaland Journal) by cosmos2000(m): 11:26pm On Dec 25, 2020
I was thinking I will find someone who has gone through it and direct me on how to do it
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 12:06pm On Jan 03, 2021
Okay I've tried running this code to my best of understanding. But I'm not getting what I need in the question.
I've successfully been able to code the question 1, going to question 2, it's just giving me an empty list.

Cc:
Naijasensei
Karleb
Semtu

Re: Learning Programming. (my Nairaland Journal) by Karleb(m): 1:32pm On Jan 03, 2021
@syluck

Re: Learning Programming. (my Nairaland Journal) by Nobody: 3:26pm On Jan 03, 2021
@syluck
what website are you using to learn?

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 4:49pm On Jan 03, 2021
syluck:
Okay I've tried running this code to my best of understanding. But I'm not getting what I need in the question.
I've successfully been able to code the question 1, going to question 2, it's just giving me an empty list.

Cc:
Naijasensei
Karleb
Semtu

Hi, peruse the code in the attached screenshot.

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:54pm On Jan 03, 2021
onecoder:
@syluck
what website are you using to learn?
A pdf I found on the internet
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:55pm On Jan 03, 2021
naijasensei:


Hi, peruse the code in the attached screenshot.
While loops can be so confusing
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:56pm On Jan 03, 2021
onecoder:
@syluck
what website are you using to learn?
Ahhhh angry
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:56pm On Jan 03, 2021
Karleb:
@syluck
Thanks cool
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 8:28am On Jan 04, 2021
syluck:

While loops can be so confusing

Yes, while loops are not as straightforward as for loops; but there are many instances where you have no choice but to use a while loop.
The main thing to remember about while loops is that you have a condition that must be monitored, and the condition must be evaluated at the end of each iteration through the loop in other to prevent an infinite loop.

while <condition>:
<statements>
<update condition>

1 Like

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:38am On Jan 05, 2021
naijasensei:


Yes, while loops are not as straightforward as for loops; but there are many instances where you have no choice but to use a while loop.
The main thing to remember about while loops is that you have a condition that must be monitored, and the condition must be evaluated at the end of each iteration through the loop in other to prevent an infinite loop.

while <condition>:
<statements>
<update condition>

Thanks.
Bro can u please in brief explain what' "Text file" in python is all about. I'm lost in that topic
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 9:01am On Jan 05, 2021
syluck:


Thanks.
Bro can u please in brief explain what' "Text file" in python is all about. I'm lost in that topic

Text files are simple files which lack the special formatting available in files produced by word processing software. As text files are popular and ubiquitous, it is only natural that every programming language has a way to access and modify text files. Other popular (universal) formats you should be interested in are JSON, XML, and CSV.
In python when you open a file, you create a resource object (which points to the file), with that resource you can now decide on the mode you want to open the file in (read only, write only, append, read/write, etc). From here you can then get the contents of the file, or even insert content into the file.
It is a broad topic, so I can't cover everything here.

2 Likes

Re: Learning Programming. (my Nairaland Journal) by syluck(m): 1:08pm On Jan 07, 2021
naijasensei:


Text files are simple files which lack the special formatting available in files produced by word processing software. As text files are popular and ubiquitous, it is only natural that every programming language has a way to access and modify text files. Other popular (universal) formats you should be interested in are JSON, XML, and CSV.
In python when you open a file, you create a resource object (which points to the file), with that resource you can now decide on the mode you want to open the file in (read only, write only, append, read/write, etc). From here you can then get the contents of the file, or even insert content into the file.
It is a broad topic, so I can't cover everything here.
Thanks.

Please can you explain more about this below... If possible, you can code it for better understanding

Re: Learning Programming. (my Nairaland Journal) by yusman14(m): 12:30am On Jan 08, 2021
syluck:
Thanks.

Please can you explain more about this below... If possible, you can code it for better understanding
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 .

1 Like

Re: Learning Programming. (my Nairaland Journal) by naijasensei: 2:12pm 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 .

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.
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:30pm 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.
Thanks.

Dictionary? I'm just running some examples codes while learning

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