Current Events > ITT: Learning Python

Topic List
Page List: 1 ... 6, 7, 8, 9, 10
SomeLikeItHoth
12/01/21 6:26:05 AM
#451:


What was the interview for?

---
... Copied to Clipboard!
SpiritSephiroth
12/01/21 8:36:56 PM
#452:


SomeLikeItHoth posted...
What was the interview for?

Another case management job and Triage officer. Does include some form of IT as well.


---
... Copied to Clipboard!
SpiritSephiroth
12/01/21 8:37:46 PM
#453:


https://www.codepile.net/pile/Wwv2b9wP

Anyway heres that last game I made based totally on RNG. Theres a major bug in it that causes one whole section I haven't been able to fix, but you guys can try it out, mess with it ect.

---
... Copied to Clipboard!
SpiritSephiroth
12/02/21 6:59:26 PM
#454:


Yeah I can't for the life of me figure that stupid bug out. I tried to put it in its own while loop while seperating part of the code into another while loop or if function and it didn't work. Actually made it worse so I'll leave it. Maybe I'll ask my friend for help once he's free from work.

Till then back to studying.

---
... Copied to Clipboard!
SomeLikeItHoth
12/03/21 3:51:38 AM
#455:


I'll take a look at your code when I can.

https://www.epicgames.com/store/en-US/p/while-true-learn

Free game. I don't know anything about it but seems interesting.

---
... Copied to Clipboard!
1337toothbrush
12/03/21 9:40:07 AM
#456:


SpiritSephiroth posted...
Yeah I can't for the life of me figure that stupid bug out. I tried to put it in its own while loop while seperating part of the code into another while loop or if function and it didn't work. Actually made it worse so I'll leave it. Maybe I'll ask my friend for help once he's free from work.

Till then back to studying.
Are you talking about the part where you choose either left or right?

You can force it like so:
first_crossroad = ""
while first_crossroad != "right" and first_crossroad != "left":
[indent] first_crossroad = input("Right or Left?").lower()

That'll loop the input part until the user inputs a correct value. You can also replace the while condition with:
while first_crossroad not in ["right", "left"]:

Then you don't have to put an "and" between each of the acceptable commands, you can simple add to the list. You can even make it more programmatic by maintaining the list elsewhere, e.g.:
acceptable_commands = ["left", "right", "back", "forward", "batman"]
while first_crossroad not in acceptable_commands:
[...]

---
... Copied to Clipboard!
SpiritSephiroth
12/03/21 9:02:20 PM
#457:


1337toothbrush posted...
Are you talking about the part where you choose either left or right?

You can force it like so:
first_crossroad = ""
while first_crossroad != "right" and first_crossroad != "left":
[indent] first_crossroad = input("Right or Left?").lower()

That'll loop the input part until the user inputs a correct value. You can also replace the while condition with:
while first_crossroad not in ["right", "left"]:

Then you don't have to put an "and" between each of the acceptable commands, you can simple add to the list. You can even make it more programmatic by maintaining the list elsewhere, e.g.:
acceptable_commands = ["left", "right", "back", "forward", "batman"]
while first_crossroad not in acceptable_commands:
[...]

Thanks I'll try this out!

---
... Copied to Clipboard!
1337toothbrush
12/03/21 9:06:13 PM
#458:


SomeLikeItHoth posted...
I'll take a look at your code when I can.

https://www.epicgames.com/store/en-US/p/while-true-learn

Free game. I don't know anything about it but seems interesting.
Forgot to comment on this. It might be a decent tool to get started on logical concepts in programming, but it's much more preferable to actually write out code. There's somewhat of a gap to jump between a point-and-click interface and actually writing out code.

---
... Copied to Clipboard!
SpiritSephiroth
12/04/21 10:39:22 PM
#459:


1337toothbrush posted...
Forgot to comment on this. It might be a decent tool to get started on logical concepts in programming, but it's much more preferable to actually write out code. There's somewhat of a gap to jump between a point-and-click interface and actually writing out code.

Ohhh thanks! I'll get this tomorrow.

---
... Copied to Clipboard!
SpiritSephiroth
12/05/21 8:28:25 PM
#460:


I tried to download it but it wouldn't let me checkout through the browser for some reason. Do I need to download the launcher?

---
... Copied to Clipboard!
SpiritSephiroth
12/06/21 10:24:01 PM
#461:


Got it! Will try it out tomorrow. Been playing Endwalker to be honest >_>

---
... Copied to Clipboard!
SomeLikeItHoth
12/07/21 5:46:38 AM
#462:


Just saw this. Haven't looked at any of the books yet. I'll do some research tomorrow or Thursday.

https://www.humblebundle.com/books/programmer-advice-that-wrox-your-world-wiley-books

SpiritSephiroth posted...
Been playing Endwalker to be honest
Nice. How is it? I've been playing Animal Crossing and Pokemon Diamond.

---
... Copied to Clipboard!
SpiritSephiroth
12/07/21 10:13:49 PM
#463:


SomeLikeItHoth posted...
Just saw this. Haven't looked at any of the books yet. I'll do some research tomorrow or Thursday.

https://www.humblebundle.com/books/programmer-advice-that-wrox-your-world-wiley-books

Nice. How is it? I've been playing Animal Crossing and Pokemon Diamond.

I'm literally possessed. Cant stop playing!

I've been wanting to get back into Pokemon. Still have unopened Pokemon games back from the 3DS era.

---
... Copied to Clipboard!
SomeLikeItHoth
12/08/21 5:45:39 AM
#464:


Does anyone know of any good / current javascript learning resources? Or maybe some books? I'm starting to get farther along in this course I'm taking & I think I need extra help while doing it.

SpiritSephiroth posted...
I've been wanting to get back into Pokemon. Still have unopened Pokemon games back from the 3DS era.
I always buy the games. I don't have the time to spend on them like I used to (I have 350+ hours in Pokemon Y) but I play them when I can.

---
... Copied to Clipboard!
SpiritSephiroth
12/08/21 11:21:46 PM
#465:


SomeLikeItHoth posted...
Does anyone know of any good / current javascript learning resources? Or maybe some books? I'm starting to get farther along in this course I'm taking & I think I need extra help while doing it.

You're gonna pick up Java and learn it alongside Python? I'm thinking maybe a year more with Python then I'll start looking into other languages.

---
... Copied to Clipboard!
SomeLikeItHoth
12/09/21 5:22:37 AM
#466:


SpiritSephiroth posted...
You're gonna pick up Java and learn it alongside Python? I'm thinking maybe a year more with Python then I'll start looking into other languages.
I started my Python journey around last February/March. I learned a lot but I was getting to this point where I needed to learn more than just Python. I felt like I wasn't doing enough by focusing on one language, and it was causing me to get really burned out. I still really love Python and I plan on picking it back up early next year, but I feel like if I learn more languages and learn more about computer science, it will overall make me a better Python programmer. There's still a lot I want to do with Python, like new projects I want to make. But I'm giving myself a break for now until I can recover mentally from spending so much time on it.

---
... Copied to Clipboard!
1337toothbrush
12/09/21 1:45:23 PM
#467:


SpiritSephiroth posted...
You're gonna pick up Java and learn it alongside Python? I'm thinking maybe a year more with Python then I'll start looking into other languages.
Just a reminder that Java and JavaScript are completely different languages. I hate that they named it JavaScript just to latch onto the hype surrounding Java at the time.

SomeLikeItHoth posted...
I started my Python journey around last February/March. I learned a lot but I was getting to this point where I needed to learn more than just Python. I felt like I wasn't doing enough by focusing on one language, and it was causing me to get really burned out. I still really love Python and I plan on picking it back up early next year, but I feel like if I learn more languages and learn more about computer science, it will overall make me a better Python programmer. There's still a lot I want to do with Python, like new projects I want to make. But I'm giving myself a break for now until I can recover mentally from spending so much time on it.
It's good to get a feel for other languages anyway since another language might be more to your liking and thus make you more productive in your programming. By the way, do you have a preference between JavaScript and Python so far?

---
... Copied to Clipboard!
SpiritSephiroth
12/09/21 10:14:11 PM
#468:


1337toothbrush posted...
Just a reminder that Java and JavaScript are completely different languages. I hate that they named it JavaScript just to latch onto the hype surrounding Java at the time.

Thanks for the heads up. At least I know this before jumping into anything Java related.

---
... Copied to Clipboard!
SpiritSephiroth
12/10/21 10:12:32 PM
#469:


I've been slacking because of Endwalker. I'll get back to it soon enough.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/10/21 10:22:19 PM
#470:


More like Endprogrammer.

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SpiritSephiroth
12/11/21 9:29:52 PM
#471:


1337toothbrush posted...
More like Endprogrammer.

I'll be back to it very soon!

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
SomeLikeItHoth
12/12/21 5:39:06 AM
#472:


1337toothbrush posted...
By the way, do you have a preference between JavaScript and Python so far?
Yeah. Python really has changed my life and changed the way I think about things in general. I have only been using Javascript for a little bit but I like what I'm learning so far. And I really like how it utilizes the browser, whereas in Python I'm mainly using/importing libraries. I'm looking forward to seeing what more Javascript can do, but I still prefer Python.

---
FAM FOREVER. | https://i.imgur.com/cGrHeeU.jpg
... Copied to Clipboard!
SpiritSephiroth
12/12/21 10:10:45 PM
#473:


What can you do with Javascript compared to Python? Can they both do the same things? I assume they can but in different ways?

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
Questionmarktarius
12/12/21 11:26:10 PM
#474:


The whole point of javascript is client-side execution, in a web browser.
... Copied to Clipboard!
SpiritSephiroth
12/13/21 10:56:25 PM
#475:


Questionmarktarius posted...
The whole point of javascript is client-side execution, in a web browser.

Interesting. Again, I think I should know this, but at the risk of sounding like an idiot, what is the best applications for Python? I thought it'd be file sorting, programs to process information and data ect..

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/14/21 1:20:13 PM
#476:


The biggest benefit of JavaScript is that it runs in the browser. As more languages can run in the browser by compiling to WASM, we'll see how much that holds up.

As for Python, it's generally for quick and dirty scripts, which was mainly the domain of shell-specific scripting languages and Perl. It has also become the premier machine learning language just due to how many in academia learn with Python. There's nothing stopping you from using Python for anything, other than maybe performance limitations which can be worked around. Like even though JavaScript is mainly run in the browser, you can run JavaScript on server side (e.g. Node). But yeah, momentum is usually what dictates the "best" applications for a language and for Python, the momentum behind it being used for machine learning is huge.

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SpiritSephiroth
12/14/21 8:15:40 PM
#477:


Thanks for the explanation. I now have a better handle with what I'm learning.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/14/21 10:48:14 PM
#478:


Actually, speaking of running other languages in the browser. Python can actually be run in the browser now as there are multiple efforts to do so through WASM (web assembly).

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SomeLikeItHoth
12/15/21 3:12:23 AM
#479:


Another free game that's been posted on Reddit. I haven't read the comments yet but it looks like it might actual be a good source.

https://store.steampowered.com/app/1812820/Bitburner/

---
FAM FOREVER. | https://i.imgur.com/cGrHeeU.jpg
... Copied to Clipboard!
SpiritSephiroth
12/15/21 7:57:10 PM
#480:


I'm still trying to get through the previous material. Time to compile everything!

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
SpiritSephiroth
12/16/21 10:12:43 PM
#481:


Bump

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
sutree
12/17/21 9:57:51 PM
#482:


Didn't read through the topic. How did you learn to code, TC? Any advice for someone starting from ground zero?

---
In the time of chimpanzees I was a monkey
... Copied to Clipboard!
SomeLikeItHoth
12/18/21 5:12:27 AM
#483:


sutree posted...
Any advice for someone starting from ground zero?
I started by reading this book

https://nostarch.com/pythoncrashcourse2e

---
FAM FOREVER. | https://i.imgur.com/cGrHeeU.jpg
... Copied to Clipboard!
SpiritSephiroth
12/18/21 10:55:17 PM
#484:


sutree posted...
Didn't read through the topic. How did you learn to code, TC? Any advice for someone starting from ground zero?

I went through the whole of the Youtube tutorial in the opening post. Typed pages and pages of notes in Microsoft Word, although it took me a week or more to go through all of it, never all at once.

After that, I relied less on notes and started to apply what little knowledge I had to practice. From there, I used a lot of material shared from posters in this topic.

I also made a github account to set up a server between me and my friend who has a masters in coding. Whenever he's free he looks over some of my work.

But I think doing small projects here and there after that helps keep interest, because sometimes I felt burnt out doing so much at once.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
BlingBling22947
12/19/21 2:00:37 AM
#485:


Tag.

---
When was the last time you heard your boy Nas rhyme?
Never on schedule but always on time
... Copied to Clipboard!
SomeLikeItHoth
12/19/21 4:59:15 AM
#486:


So fams, what are all y'alls new year resolutions?

Mine is to finish out my current video course about web dev.
Then to actually start with the odin project.
And I'm really going to get back into Python again.

EDIT: also, TC, maybe get ready for the next topic? What are you going to name it?

---
FAM FOREVER. | https://i.imgur.com/cGrHeeU.jpg
... Copied to Clipboard!
indica
12/19/21 5:00:46 AM
#487:


tag 2

---
There is no good. There is no evil. There just is.
... Copied to Clipboard!
SpiritSephiroth
12/19/21 10:20:10 PM
#488:


SomeLikeItHoth posted...
So fams, what are all y'alls new year resolutions?

Mine is to finish out my current video course about web dev.
Then to actually start with the odin project.
And I'm really going to get back into Python again.

EDIT: also, TC, maybe get ready for the next topic? What are you going to name it?

Well my new years is to work harder on my hobbies and to finish the final chapter of FF14, Endwalker which I did just now. It was simply amazing.

I might just name the next topic part 2, same name. I need to finish compiling all the sources in this topic.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
sutree
12/19/21 11:00:07 PM
#489:


Are you guys trying to get into a software job or just doing this as a hobby?

---
In the time of chimpanzees I was a monkey
... Copied to Clipboard!
SpiritSephiroth
12/20/21 10:56:59 PM
#490:


sutree posted...
Are you guys trying to get into a software job or just doing this as a hobby?

Right now its a hobby and interest but I'm hoping it will evolve into something I can use to get a job with or help with getting a job in the IT sector, then programming.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
SpiritSephiroth
12/21/21 10:24:25 PM
#491:


Updated my CV and put python programming in my interests/hobbies section. Not going to put it in skills until I'm a lot more confident.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/21/21 11:08:44 PM
#492:


I haven't touched any programming since I started my vacation from work. Might start up a side project when I'm back at work.

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SpiritSephiroth
12/22/21 11:10:26 PM
#493:


Bump.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
SpiritSephiroth
12/23/21 10:06:54 PM
#494:


I'm probably going to upload new code I've been working on soon. Going to be a few smaller ones that do basic functions just to see if they're working as intended. Till then I'm going to have to try and make time to focus more on coding.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/23/21 10:16:20 PM
#495:


Topic almost full.

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SpiritSephiroth
12/24/21 6:25:38 PM
#496:


Indeed. Feeling really bad tonight, my stomach feels weird. Gonna sleep early.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
1337toothbrush
12/24/21 6:31:03 PM
#497:


Write a program to make your stomach feel better. Hack into the matrix.

---
https://imgur.com/a/FU9H8 - http://i.imgur.com/ZkQRDsR.png - http://i.imgur.com/2x2gtgP.jpg
... Copied to Clipboard!
SomeLikeItHoth
12/25/21 6:31:54 AM
#498:


Merry Christmas!

---
FAM FOREVER. | https://i.imgur.com/cGrHeeU.jpg
... Copied to Clipboard!
SpiritSephiroth
12/25/21 9:23:18 PM
#499:


Merry Christmas guys. I had a huge migraine today after that terrible last night, but I'm back on my feet! Coding before bed.

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
SpiritSephiroth
12/25/21 9:23:33 PM
#500:


Lastly, thank you to everyone who took part in this topic. I compiled all the relevant resources and materials here into a Microsoft word document. If anyone wants the links ect, PM me!

---
https://i.imgur.com/spfW7gv.jpg https://i.imgur.com/EAuZ5LW.jpg https://i.imgur.com/ZzXmr8X.jpg
... Copied to Clipboard!
Topic List
Page List: 1 ... 6, 7, 8, 9, 10