Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,195,572 members, 7,958,770 topics. Date: Wednesday, 25 September 2024 at 11:21 PM

Syluck's Posts

Nairaland Forum / Syluck's Profile / Syluck's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 11 pages)

Education / Re: Top 10 Most Dangerous Places In The World by syluck(m): 8:46am On Jan 02, 2021
I think number 7 is a pass for me
Programming / 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
Programming / 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

Programming / 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
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:20am On Dec 20, 2020
BigDawsNet:
This is wonderful
Thanks
Programming / 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

Programming / 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

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:24pm On Dec 18, 2020
KingAbdulazeez:

can you share the PDF or the link to download it.

www.brianheinold.net › pythonPDF
A Practical Introduction to Python Programming - Brian Heinold

Search 'python pdf' on Google. Scroll down to where you'll find what I posted above. Don't bother clicking on that link.
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 3:08pm On Dec 18, 2020
KingAbdulazeez:
where do you find project like this.?
I'm using a pdf that teaches the basics of Python and gives exercises to work though it's old(2012 edition) but I just like it
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:26pm On Dec 18, 2020
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

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 1:04am On Dec 18, 2020
realman42:
Well-done
Start a project immediately
U will learn faster
Browse beginners projects
Thanks man. But I need to finish up dictionary and text files
I'm still learning

1 Like

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:45pm On Dec 17, 2020
Semtu:


Two things are wrong:

1. You have to print str for each iteration as you've done for the for loop, which is print(str[i])
2. The print statement should come before i+=1
Thanks. It worked
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 4:42pm On Dec 17, 2020
KingAbdulazeez:

This is giving annoying while loop
Lol, u don't like using while loop?
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 1:39pm On Dec 17, 2020
Semtu:


Your print statement is not under the while loop.
Still wouldn't give me what the for loop would gimme
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:57am On Dec 17, 2020
Ok guys, I'm stuck in the while loop.

Want it to print exactly what the for loop does

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:25pm On Nov 28, 2020
naijasensei:


Q1 - First understand what range() does.
range(start, stop, step). The range function produces values from the start value, upto but NOT INCLUDING the stop value. That is;
for i in range(1,10)
supplies i with values 1,2,3,4,5,6,7,8,9. Assuming prompt = 10, and I want a range of values from 1 to 10 (10 inclusive), instead of range(1, prompt) I would rather use range(1, prompt + 1)

Q2 - factorial = factorial * i is a programming concept you will see a lot of. It means multiply the value referenced by "i" with the current value referenced by "factorial", then let the new value referenced by factorial be (factorial * i)

Q3 - s += i is the same as s = s + i, same explanation as in Q2

s *= i is the same as s = s * i,
s -= i is the same as s = s - i,
and so on.

Thanks bro...

1 Like

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:25pm On Nov 28, 2020
Karleb:
Let say x has an initial value of 2.

When you do x += 2 it a short hand for x = x + 2, which will give you 4.

That means

x = x + 2 'and' x += 2 are thesame thing.

You can substitute the addition sign for any other arithmetic sign in python.

x = 4

x *= 4 #16

x //= 2 #8

x -= 3 #5

x %= 2 #1

x /= 1 #1.0



Concised and informative...

I appreciate your help
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 8:24pm On Nov 28, 2020
Karleb:
In python for loop, the range function doesn't loop to the end of the value naturally, to enable it do this, you have to add 1 the value.


range(1, 4) will print out. 1,2,3 in a loop. So to let it loop to 4 you'll add 1 to 4 to make it 5.


That is, range(1, 4 + 1) will print 1,2,3,4. That is thesame thing as range(1, 5).


In the case where the integer is stored in a variable is when you see something like range(1, myValue + 1).


myValue = 4
for i in range(1, myValue + 1):
print(i)


That loop will print 1,2,3,4.


I think this range thingy is a bug turned feature in python because when you loop through a list, you don't have this problem.
I appreciate this thanks....
Celebrities / Re: Video Of Davido Sharing Dollars In Dubai by syluck(m): 7:37pm On Nov 28, 2020
Made4naijaoeo:
I no cum understand the guy sef
He's a mega star that's why
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 5:42pm On Nov 28, 2020
Hey, please anyone can help out...

Bovage
Semtu
Karleb

Thanks
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 5:41pm On Nov 28, 2020
naijasensei:


Nice, great work.

For Q12 though, I believe score shouldn't be a list, rather it should be of type int. So:

score = 0
number = random.randint(1,10)
#different from random.randrange(1,11)

Because of this:
score.append(10) should be score += 10
score.append(-1) should be score -= 1

Thanks.

Bro, there's this python concepts I really need to understand how it works....
I'll list then below:

1: for i in range (2, prompt+1):

Here, I know "prompt" could be a variable where a value is assigned to.....then, (2) is where we want the loop to start from.... My difficulty is understanding what +1 after the prompt stands for....
Like the example above I listed is used when running a code for "divisors of a number*...

2: for i range(1, num+1):
Indent""""""""factorial = factorial * i

Here, the +1 appears again.... But this time around it's the "factorial * i".... Pls I need to understand this concept really good.....

Lastly:

3: for i in range(1, prompt+1):
Indent"""""""""if(prompt %i ==0)
Indent"""""""""s += i

Here, I understand what prompt is, %i is, ==0 is, and s is... The problem is, "+=". I still don't understand vividly what's that all about...in short, u can explain the whole concept "s += i" to me please....

PS: i know that
+ is an addition operator
* Is a multiplication operator
= a equal sign operator ( mostly used to assign values to variables and vice versa)
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:52pm On Nov 27, 2020
Semtu:


I'll give you hints for number 10, you learn better my figuring things out yourself. You'll need to collect 10 inputs from the user by calling input() through a loop. Outside the loop, create an empty list then append each input to the list while the loop is still valid. Once you've collected the inputs to a list, you can easily play with the python list by calling sorted(). This will sort the list elements in ascending order. Meaning that indexing the first element of the list would be the lowest since the values are sorted while the last would be the highest. To find the average, you can sum the list then divide by the len. Apply similar logic to the rest.

For the second part, this is one way to work through it.
import random
score = [ ]
number=random.randint(1,11)
trials=5
while trials>0:
```indent```guess=int(input('guess the number between 1 to 10: ')
```indent```if guess==number:
```indent``````indent```score.append(10)
```indent```else:
```indent``````indent```score.append(-1)
```indent```trials-=1

print(sum(score))

Thanks bro....my head be so heavy this days cos of running codes....
Celebrities / Re: Woli Arole Celebrates Igboho, Sanyeri, Others With Trbal Marks (Photos) by syluck(m): 9:38pm On Nov 27, 2020
ChocolateWine:
We're all beautiful if you have someone who celebrates you
Please don't try this on your kids and call it "we are all beautiful bla bla..."
Programming / Re: Whats The Lowest Salary You Have Ever Been Offered As A Developer? by syluck(m): 9:37pm On Nov 27, 2020
RemiAbdulSamad:
I never reach that level. I still dey find job. Have a look at my portfolio in my signature.

Your portfolio is nice...
Did u design it?

1 Like

Programming / Re: The Hardest Topic You Encountered While Learning Any Programming Language? by syluck(m): 9:28pm On Nov 27, 2020
sammysmiles:
We that deal with further maths and physics,,,, I don't think computer programming is as difficult as those...

You wish sir
Celebrities / Re: "Can You Date Or Marry Her?":meet Black Beautiful Female Bodybuilder by syluck(m): 6:30pm On Nov 27, 2020
She looks like a man tbh and it's a turn off for me
Programming / Re: How Do I Start Please by syluck(m): 7:30am On Nov 27, 2020
Auxtan:

Thanks so much for this bro. Please I will like to be in communication with you. I will drop my whatsapp number via mail, please do well to contact me. God bless
Sorry bro, I saw this late....
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 2:53pm On Nov 26, 2020
naijasensei:


Think like a computer scientist.
Automate the boring stuff with Python.

Make sure you get the latest editions. Even the one you are using, I suspect there might be a newer version.
Bro, on god sometimes the simplest algorithms are the hardest to code angry

Please can you help me out on number 10 and 12

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 9:41pm On Nov 21, 2020
naijasensei:


Say what? You're using a 2012 material?
grin angry grin

Suggest a better one for me please
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 5:13pm On Nov 21, 2020
Vecto:


Sorry do you code on mobile?

Yes, most times. Can't be carrying my pc all the times
Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 5:09pm On Nov 21, 2020
Vecto:
Well done bro. Coding on mobile can be quite stressful, eh?

What pdf are you using btw?

Thanks bro.

Here is the pdf name

1 Like

Programming / Re: Learning Programming. (my Nairaland Journal) by syluck(m): 10:27am On Nov 21, 2020
naijasensei:


For question 3, you are to use if...elif...else blocks
If you have a variable, temp, pointing to where the temperature in °C is stored. Then:

Point of note, I am only showing this to give you an idea. In practice, in a program, be careful when comparing floating point (decimal) numbers. Floating point arithmetic is not as straightforward as integer arithmetic.
Does this automate the 273.15 to -273.15?
Cos that's really my problem. How to run the code inserting the -(minus) operator

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 11 pages)

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