Learn Python in 100 days thread

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
I think you can condense your Is_Year_Leap_Year to a handful of lines
Code:
def Is_Year_Leap_Year(year):
  if year % 4 == 0 and year % 100 == 0 and year % 400 == 0:
    return True
  elif year % 4 == 0 and year % 100 == 0:
    return True
  return False
That's based on a quick visual inspection though, I could be wrong.
 

Secure Da Bag

Veteran
Joined
Dec 20, 2017
Messages
40,051
Reputation
20,339
Daps
126,185
I think you can condense your Is_Year_Leap_Year to a handful of lines
Code:
def Is_Year_Leap_Year(year):
  if year % 4 == 0 and year % 100 == 0 and year % 400 == 0:
    return True
  elif year % 4 == 0 and year % 100 == 0:
    return True
  return False
That's based on a quick visual inspection though, I could be wrong.

Good catch. :salute:

But you could have just put that in the OG forum. :mjcry:
 

King

The black man is always targeted.
Joined
Apr 8, 2017
Messages
18,670
Reputation
4,029
Daps
79,620
Day 3

Started on the final day project but ain't finish it cause it was a waste of time

Some treasure island shyt

I understand all the underlying syntax and shyt

I spend like 45 mins just trying to be super perfect on the formatting and said fukk it bc it was literally of no value to me

onto day 4

edit: just about to wrap it up, on the project rn
 
Last edited:

King

The black man is always targeted.
Joined
Apr 8, 2017
Messages
18,670
Reputation
4,029
Daps
79,620
Just found this, 4 hours left at $10.
Has it been worth the investment so far?
yeah its way worth it just based on the projects alone, prolly still worth whatever it is now too. I can legit see someone charging a couple hundred for this

Most books aren't gonna have you set up like this on the project side unless they come with an external website.

This course sets up over 100 projects for you to do daily. It's worth it just off the hands-on experience you get.

Think of it like a workout program that you have to go into the gym with a personal trainer that guides you through it

Versus

An exercise science book with examples.

They both have pros/cons. But the most bang for your book will always be doing it vs understanding it 100% conceptually. Sure the trainer might not tell you everything you get if you go to school for it, this is the pragmatic approach.

I'm personally following this up with a dive into CS principles to understand the deeper layers and programming of it all.
 
Last edited:

King

The black man is always targeted.
Joined
Apr 8, 2017
Messages
18,670
Reputation
4,029
Daps
79,620
Caught a lil hiccup on day 5, should finish it soon

She didn't explain for loops as well as she could. Hopefully this ain't a sign of what's to come.
 

King

The black man is always targeted.
Joined
Apr 8, 2017
Messages
18,670
Reputation
4,029
Daps
79,620
Damn so I spent like 3 hours on the Day 5 project

I actually had it figured out in the first 15 mins, literally had the correct code written, but I made a hoe ass logic error and went on a 3 hour experience googling random shyt to figure it out
 

xiceman191

Superstar
Joined
Jan 23, 2015
Messages
6,260
Reputation
2,328
Daps
29,827
On day 3 and really realizing how unoptomized I be coding. I be going all out my way to get shyt working and then when she does the example shyt is so simple. :mjlol:

Edit: The love calculator exercise is harder than the treasure island project.
 

King

The black man is always targeted.
Joined
Apr 8, 2017
Messages
18,670
Reputation
4,029
Daps
79,620
Day 6 imma try to finish this whole reeborg thing
 

Cynic

Superstar
Joined
Jan 7, 2013
Messages
16,153
Reputation
2,269
Daps
34,917
Reppin
NULL
I'm gonna hop on this week breh

I'm currently working on a freelance project and working on updating some code from jQuery to vanilla javascript.

I really want to brush up on my Python but keep going!


Why are you switching from JQuery ?>
 
Top