Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,203 members, 7,953,744 topics. Date: Friday, 20 September 2024 at 02:46 AM |
Nairaland Forum / Science/Technology / Programming / Learning Programming. (my Nairaland Journal) (26242 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) ... (5) (6) (7) (8) (9) (Reply) (Go Down)
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 3:59pm On Feb 10, 2021 |
syluck: Hi, good to see you are making progress. However, you are "hardcoding" the two numbers and their respective products. I can think of one way to make the program use random numbers: - Create a list of numbers, probably from 1 to 12. - Start your for loop - Randomly select two numbers from the list, then assign each number to a variable. - Use the variables to form your question during each pass through the loop. - Evaluate the answer supplied by the user - End your loop after 10 iterations. Try this approach, and do not hesitate to ask questions. 1 Like |
Re: Learning Programming. (my Nairaland Journal) by EaglesEyes1(m): 5:41pm On Feb 10, 2021 |
syluck:Which tutorial book on Python are u making use of? |
Re: Learning Programming. (my Nairaland Journal) by Karleb(m): 5:59pm On Feb 10, 2021 |
@syluck This is what I talked about. I guess @naijasensi just buttressed it Checking for dulicate question will not be necessary as the randint function worked so well for tha range 3 Likes
|
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 7:03pm On Feb 10, 2021 |
Karleb: This is what I had in mind. Excellent! 1 Like |
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:09pm On Feb 10, 2021 |
naijasensei:Thanks for your input, I do like the way you elaborate. I appreciate. 1 Like |
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 7:09pm On Feb 10, 2021 |
Karleb:Thanks for this. I appreciate....been waiting on it. |
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 8:08am On Feb 11, 2021 |
Karleb and naijasensei, I am more interested in pandas and numPy, would you suggest I learn "app creation level" python like you used in solving the task above? Would I need high level skills later in my journey? |
Re: Learning Programming. (my Nairaland Journal) by naijasensei: 12:26pm On Feb 11, 2021 |
MackyNaija: Hi there. I am by no means a Python expert, but I do know numPy and Pandas are useful for data manipulation - data science, data analysis, and other such fields. You will definitely need high level skills later, because learning never ends. As you get better, newer methods and technologies will definitely beckon to you. Just nail down the basics, and build on that foundation. |
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 4:54pm On Feb 11, 2021 |
naijasensei:Almost done with learning beyond basics. Thank you! 1 Like |
Re: Learning Programming. (my Nairaland Journal) by Rickywowoz: 5:17am On Feb 12, 2021 |
MackyNaija: Good day my oga. I been following you for a min and I know say you be established American boss engineer. I'm just curious to know why you have decided to learn programming. No vex for my question abeg |
Re: Learning Programming. (my Nairaland Journal) by yusman14(m): 11:19am On Feb 12, 2021 |
EaglesEyes1:Automating the boring stuff with python, python crash course |
Re: Learning Programming. (my Nairaland Journal) by EaglesEyes1(m): 12:31pm On Feb 12, 2021 |
yusman14:Thanks |
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 4:46pm On Feb 12, 2021 |
Rickywowoz: 1. I need to keep my brain busy, it hates doing nothing. 2. I do Excel data analysis quite frequently, I need an easier, faster and accurate way of doing some tasks especially on big (rows in 100k+) and diverse data (e.g 1 motherboard having 6 models used in 150 different projects in 1year). With Excel, na manual labour even as simple as merging January and February data in one sheet. OR Due to limitations on data that can be pulled from our database, I need to query them in bits then merged 15 spreadsheets manually - kills my spirit. Pandas come in here - I have seen how it easily manipulates data. I learn with K3ith Gall1 & D3rrick Sh3rill on YouTube. 3. I need a way to distinguish myself from others in my field. Pandas, NumPy, query language, Visualization - PowerBi and/or Tabluea then I take a break by Dec 2022. After tasting general Python - my plan above is actually Easy to learn. Only difficult part is learning it while employed full-time. It's a pet project for me, I don't intend to switch careers but I like to have that option. Being skillful in Software use is the future. 2 Likes |
Re: Learning Programming. (my Nairaland Journal) by Semtu(m): 7:12am On Feb 13, 2021 |
syluck: You have to make your code refactorable.. You literally coded out the questions and answers. But in the question from the textbook, you were told to work with random numbers. Also at the end of the 10 questions, collate the total score by incrementing it for each right answer over the ten iterations, since you are building a game sort of. 2 Likes |
Re: Learning Programming. (my Nairaland Journal) by Rickywowoz: 9:12am On Feb 13, 2021 |
MackyNaija:Thank you for taking your time to answer my question. Goodluck with your learning. In the future, programming is gonna be a mandatory skillset for anyone in stem. 1 Like |
Re: Learning Programming. (my Nairaland Journal) by Kennyking1234: 12:01am On Feb 14, 2021 |
kennyking1234: |
Re: Learning Programming. (my Nairaland Journal) by Plaouse(m): 1:22am On Feb 18, 2021 |
Wrote this code that gets the odd, prime, even, and composite numbers off a list of numbers. How did I do? 2 Likes
|
Re: Learning Programming. (my Nairaland Journal) by Karleb(m): 3:29am On Feb 18, 2021 |
... |
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 4:08pm On Feb 18, 2021 |
Plaouse:Can you split your code in two? One code for even and odd numbers and run it, then post the result Then... Another for primes and composites then post the result. |
Re: Learning Programming. (my Nairaland Journal) by Plaouse(m): 7:29pm On Feb 18, 2021 |
MackyNaija: Here. But what's the need?
|
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 12:39am On Feb 19, 2021 |
Plaouse:So I can practice and compare my solution with yours. I just started learning. |
Re: Learning Programming. (my Nairaland Journal) by Plaouse(m): 6:42pm On Feb 19, 2021 |
MackyNaija: Lmaooo. And you gave the instruction like you wanted to show me a better way. |
Re: Learning Programming. (my Nairaland Journal) by MackyNaija(m): 11:50pm On Feb 23, 2021 |
Plaouse:I usually do propose a different way of solving. Since we learned from different sources, our approaches are definitely different - check the previous page for some solutions I did. Will find time to do yours, work busy die so I haven't touched programming in days. |
Re: Learning Programming. (my Nairaland Journal) by NoFap123: 5:37pm On Feb 25, 2021 |
Let me make my presence here. I will be back |
Re: Learning Programming. (my Nairaland Journal) by lovelyboi71(m): 11:57am On Mar 06, 2021 |
Hi I'm a student trying to survive , I really wanna learn a skill like programming . Can you help me Please dm on WhatsApp 09060639892 |
Re: Learning Programming. (my Nairaland Journal) by syluck(m): 5:01pm On Mar 15, 2021 |
omggggggggggggggggggggggggggggggggggggggggggggggggggggggggg can't believe i've successfully installed django on my visual code editor. i'm so so happy. been on youtube tutorials and google for long but i couldnt. wont lie, it took me so many weeks. kept frustrating me but today i've conquered it. omo my heart is at ease now 2 Likes |
Re: Learning Programming. (my Nairaland Journal) by Tohsynetita1: 10:34am On Mar 17, 2021 |
Please if you are good in Hacking, and you can hack into any data base,
Please contact Greatfullness494@gmail.com
A job awaits you. |
Re: Learning Programming. (my Nairaland Journal) by roland2rule(m): 6:50am On Oct 08, 2021 |
adeniyi3971: Hi bro, I guess you are done with your program there now? How was it? Can you share your experience? I just applied there last week too and I started The Odin Project curriculum yesterday. |
Re: Learning Programming. (my Nairaland Journal) by urchmony1(m): 2:51pm On Nov 19, 2021 |
Ans 1,2,3: #type in 19 asteris then break the line with "\n" print("*******************" +"\n" "*******************" +"\n" "*******************" +"\n" "*******************" Do same for question number 2, but this time line 2 and 3 of the asteris will start with 1asteris, 16 spaces then end with the last 1 asteris. Line 1 and 4 will be complete 19 asteris. Question3: Same as others but this time line 1 will have 1 asteris, line 2: 2 asteris, line 3: 3 asteris, and line 4: 4 asteris etc Depending on how big u want the right triangle be. This is a python program. Hope it helps. |
Re: Learning Programming. (my Nairaland Journal) by urchmony1(m): 2:54pm On Nov 19, 2021 |
syluck: Ans 1,2,3: #type in 19 asteris then break the line with "\n" print("*******************" +"\n" "*******************" +"\n" "*******************" +"\n" "*******************" Do same for question number 2, but this time line 2 and 3 of the asteris will start with 1asteris, 16 spaces then end with the last 1 asteris. Line 1 and 4 will be complete 19 asteris. Question3: Same as others but this time line 1 will have 1 asteris, line 2: 2 asteris, line 3: 3 asteris, and line 4: 4 asteris etc Depending on how big u want the right triangle be. This is a python program. Hope it helps. 1 Like |
Re: Learning Programming. (my Nairaland Journal) by rmjspecial(f): 12:43pm On Dec 01, 2021 |
roland2rule:Hi bro, I just started this odin project and i will need someone to guide me through can i link up with you for further questions? |
Re: Learning Programming. (my Nairaland Journal) by roland2rule(m): 7:17am On Dec 02, 2021 |
rmjspecial: I have been admitted to the Microverse program since October.... Most likely, I will resume by January. |
(1) (2) (3) ... (5) (6) (7) (8) (9) (Reply)
Build A Mobile App Without Knowing Any Programming Language or line of code. / Why Do Self Taught Programmers Over Exaggerate / 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. 51 |