Seasons of Love Solution CS50P - Problem Set 8

  Рет қаралды 167

Simple Easy Python

Simple Easy Python

Күн бұрын

Пікірлер: 3
@ingega
@ingega 3 ай бұрын
Hello!!! my code is correct, but check50 send a parameter "today" so in check50 if date is 1999-01-01 must be "Five hundred....." bla-bla-bla, if "today" was 2001-01-01. instead my function show ("several millions...bla bla bla) that correspond to the substract of today-1999-01-01 you catch it? my function returns the exactly phrase if i use Date: 2023-10-20 (today is 2024-10-19, and is a leap year) well i use datetime.date.today() as instructions, indicates but how can i catch the input of "today" in unitest of cs50? or i can't see the way of pass this !!!!
@SimpleEasyPython
@SimpleEasyPython 3 ай бұрын
It is always good to use yesterday and day before yesterday in pytest so that the difference is 1440 and 2880 respectively as I have said in the video. Also avoid running pytest near mid-night where the day changes. Hope this helps.
Response Validation Solution CS50P - Problem Set 7
8:11
Simple Easy Python
Рет қаралды 56
PROBLEM SET 8: SEASONS OF LOVE | SOLUTION (CS50 PYTHON)
23:05
Dors Coding School
Рет қаралды 21 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 176 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 942 М.
Cookie Jar Solution CS50P - Problem Set 8
18:28
Simple Easy Python
Рет қаралды 112
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,6 МЛН
Large Language Models explained briefly
7:58
3Blue1Brown
Рет қаралды 1,1 МЛН