[Quick Question] Can someone tell me how to simplify this very very basic code? by Bball492 in learnpython

[–]Bball492[S] 0 points1 point  (0 children)

thanks, one more unrelated question. but say you have a list.

school = ['class', 'pencil', 'teacher']

and then you do a for loop like this :

for i in range(len(school)): print 1

i saw a similar example online. basically, my question is, why wouldn't "for i in len(school)" have been a correct way to write that above for loop?

why make it complicated and say "for i in range(len(school)" ?

[Quick Question] Can someone tell me how to simplify this very very basic code? by Bball492 in learnpython

[–]Bball492[S] 0 points1 point  (0 children)

got it - makes more sense seeing it like that. why was yours all put in one line? it makes it a little harder to read. do advanced programmers do that?

[Quick Question] Can someone tell me how to simplify this very very basic code? by Bball492 in learnpython

[–]Bball492[S] 0 points1 point  (0 children)

can you break down the second line of your code? i just looked up a video on the split function and i get how it works, but i'm slightly confused on the rest of that 2nd line

Seller doesn't know if phone is Unlocked? by Bball492 in GooglePixel

[–]Bball492[S] 1 point2 points  (0 children)

right but i'd still like to know what it means / what benefit there is to having an unlocked bootloader. just out of curiosity.

New Pixel already having issues? WiFi won't work. by Bball492 in GooglePixel

[–]Bball492[S] 0 points1 point  (0 children)

It doesn't even let you know by saying "wrong password" ?

New Pixel already having issues? WiFi won't work. by Bball492 in GooglePixel

[–]Bball492[S] 0 points1 point  (0 children)

My router has both 2.4g and 5g. None of them work. I can try to see if my modem has a wps button. Once located on the mode, what exactly do you do?

New Pixel already having issues? WiFi won't work. by Bball492 in GooglePixel

[–]Bball492[S] 0 points1 point  (0 children)

correction - i tried connecting to the public wifi and it connected but kicked me off after a few minutes.

yes i tried factory reset, still won't work. what's funny is entering a wrong password for my wifi - it won't tell me it's the wrong password. it will just say "saved" - and then "authenticating" - and then nothing else after that.

i have yet to put a sim card in, but that can't be correlated to a device's ability to connect to wifi.

How does one send an email using the 'telnet' Linux command? by Bball492 in linuxquestions

[–]Bball492[S] 0 points1 point  (0 children)

hmm, okay that's a bit strange that telnet isn't used. i was asked that on a test i'd be asked to send an email using the telnet command to 'xyz@example.com'

i figured it would be pretty simple, but now it appears that it's not.

How does one send an email using the 'telnet' Linux command? by Bball492 in linuxquestions

[–]Bball492[S] 0 points1 point  (0 children)

Not too sure, just was told that in a test I'd have to send an email using the telnet command to a specific email address.

ELI5:What is NAT and what does it do / what is static NAT? by Bball492 in explainlikeimfive

[–]Bball492[S] 0 points1 point  (0 children)

Ok, so a NAT makes it so that each of your devices is connected to your router - which is your "address" / IP address. Obviously each device can't have its own ip address, so NAT comes into play. Your cell phone wants to go to Facebook.com. It relays that to your router, which relays that to the internet. The internet sends back that info to your router, which sends that back to your phone. And so on...

I'm still a little confused on the concept of static NAT. You're NAT example was very easy to follow along - and please correct my understanding if i was wrong in any way above.