Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Obreh Winfrey

Pages: [1]
1
That Panda module is no joke. I can see that difficulty level is just gonna ramp up from here.
Man I tried using Pandas and NumPy on the side and it kicked my ass every step of the way. I think the most I did was generate a table and then give up.

2
100 Days of Code / Re: Day 26 - List Comprehension and NATO Alphabet
« on: January 04, 2022, 10:17:58 am »
That NATO alphabet code looks a lot simpler than I expected it would be - a couple days ago I had a though of that being a nice easy challenge for someone new to programming.

3
100 Days of Code / Re: Day 24 - Files, Directories, Paths
« on: December 25, 2021, 10:22:49 pm »
This should be when the interesting practical stuff gets covered. Manipulating files is unavoidable.

4
100 Days of Code / Re: Day 12 - Scope and Number Guessing Game
« on: December 02, 2021, 10:56:30 pm »
Running it through an online Python compiler and I don't see any issues.

5
100 Days of Code / Re: Day 5 - Python Loops
« on: November 28, 2021, 09:17:41 pm »
Python makes it easy to loop over lists, but sometimes you need a traditional C-style for loop that let's you use the iteration of the loop. I did some file operations in a script where I needed to use the index to know where to markup a file. This link is a helpful tutorial: https://treyhunner.com/2016/04/how-to-loop-with-indexes-in-python/

6
100 Days of Code / Re: Day 8 - Function Parameters & Caesar Cipher
« on: November 28, 2021, 09:11:03 pm »
Pay attention to isPrime, that's a method implementation that comes up in job interviews from time to time. Prime numbers are only divisible by 1 and themselves, which allows you to shortcut some math by checking from 2 to n / 2. It's an optimization that pays off for large n. I think there's also some other mathematical trickery you can employ on that, but at that point you really aren't solving a computer science problem, but a math problem - as an interviewer I'd never expect or even want the mathematical answer.

7
100 Days of Code / Re: Day 10 - Functions with Output
« on: November 28, 2021, 08:59:22 pm »
Inputs and Outputs of a Function
Spoiler (hover to show)

Challenge
Spoiler (hover to show)

Example of a docstring
Spoiler (hover to show)

Project
Spoiler (hover to show)

I think you can condense your Is_Year_Leap_Year to a handful of lines
Spoiler (hover to show)
That's based on a quick visual inspection though, I could be wrong.

Pages: [1]