[2021 Day 1 (Part 1)] Test successful, but answer is wrong

2021.12.01 21:06 Se7ensenn [2021 Day 1 (Part 1)] Test successful, but answer is wrong

Here is my code:

def read_file(file_name:str) -> list: with open(file_name) as file: lines = file.readlines() lines = [line.rstrip() for line in lines] return lines def count_measurements(list_of_measurements: list) -> int: return len([list_of_measurements[i] for i in range(len(list_of_measurements)-1) if list_of_measurements[i] < list_of_measurements[i + 1]]) if __name__ == '__main__': print(count_measurements(read_file("D01/d01_input_data"))) 
I also wrote some tests, including data from the task itself.
from d01_sonar_sweep import count_measurements 
def test_simple_count_measurements() -> None: assert count_measurements([1, 2, 3, 4, 5]) == 4
def test_small_count_measurements() -> None: assert count_measurements([3, 2, 3, 2, 3]) == 2
def test_advent_sample() -> None: assert count_measurements([199, 200, 208, 210, 200, 207, 240, 269, 260, 263]) == 7
Tests are all green, I copied data from https://adventofcode.com/2021/day/1/input, but the answer I get is wrong. Can someone suggest, where am I wrong?
submitted by Se7ensenn to adventofcode [link] [comments]


2021.12.01 21:06 realdizzyspins Dizzy Spins - How Far Did You Fall (Remastered)

Dizzy Spins - How Far Did You Fall (Remastered) submitted by realdizzyspins to NuDisco [link] [comments]


2021.12.01 21:06 RamenTheory My cat is maybe kind of cute I think

My cat is maybe kind of cute I think submitted by RamenTheory to aww [link] [comments]


2021.12.01 21:06 hotlinebrut Peter!!! No!!!

Peter!!! No!!! submitted by hotlinebrut to nincirclejerk [link] [comments]


2021.12.01 21:06 Sesh_ethereal just a lil story photo dump

just a lil story photo dump submitted by Sesh_ethereal to ToopoorLay [link] [comments]


2021.12.01 21:06 Ill-Consequence-9430 Name for a new law school community

Hi everyone! I'm thinking of starting a group for all of us to collaborate and communicate regarding all things law school admissions. Would love your input on a name!
View Poll
submitted by Ill-Consequence-9430 to LSAT [link] [comments]


2021.12.01 21:06 MasterMirkinen Which TV show did the worst job with character ageing and the introduction of background story through flashbacks?

submitted by MasterMirkinen to AskReddit [link] [comments]


2021.12.01 21:06 Dark_Matters_47 Getting cozy on a cold night

Getting cozy on a cold night submitted by Dark_Matters_47 to CozyPlaces [link] [comments]


2021.12.01 21:06 LeTerroir This sweater/cardigan?

This sweatecardigan? submitted by LeTerroir to findfashion [link] [comments]


2021.12.01 21:06 swebb22 Happys running club

Anyone know if this group is still meeting on Wednesday’s by Mannings?
submitted by swebb22 to NewOrleans [link] [comments]


2021.12.01 21:06 AvalieV ITAP of a Poolside

ITAP of a Poolside submitted by AvalieV to itookapicture [link] [comments]


2021.12.01 21:06 Nelly1963 Zekrom add 3709 2796 0463

submitted by Nelly1963 to PokemonGoRaids [link] [comments]


2021.12.01 21:06 JeykMollins 6000 series in January 2022?

Is it true that the amd will release 6000 series in 2022?
submitted by JeykMollins to buildapc [link] [comments]


2021.12.01 21:06 Solfaroiy Brand New Shiryo - Inu - DAPP based game & NFT’s in development! - Liquidity Lock - Launching Now on BSC





Welcome to Shiryo - Inu

Shiryo - Inu launching now on Ethereum and it seems that play to earn game tokens are still one of the best niches to buy in DeFi! The roadmap details a fully functional trading card based game which will allow for the earning of the native token through different incentives including weekly competitions!
Contract Address: 0x0e675f042b4C4053062e94ff4738e233D846A31b
The team recently released concepts for the trading cards on their Telegram group and their design team has done an amazing job, this is a gem in the making and it is still incredibly early if you get in now. Having only been life for less than 24 hours the token is sitting at just above a $1M market cap which is incredibly low for a play to earn game, the team is really active on Telegram and the holders seem to be diamond handed after seeing the potential in this project!
Everything about this project has been super clean so far, the chart looks good and the website and concepts released so far have been on point.
The whitepaper is to be released today alongside more mockups of the concept for the game, the marketing has been on point with calls from all the biggest names on Telegram and Twitter. The developer even just hired a social media specific marketing agency to help get even more eyes on the project, Shiryo-Inu is about to become synonymous with the likes of Floki and Mononoke - Inu, don’t sleep on this one!

Link Buy
Contract Address: 0x0e675f042b4C4053062e94ff4738e233D846A31b
Pancakeswap: https://pancakeswap.finance/swap?outputCurrency=0x0e675f042b4C4053062e94ff4738e233D846A31b

Website: https://shiryoinu.in/
Telegram: https://t.me/shiryoInuGlobal
Twitter: https://twitter.com/ShiryoOffical
submitted by Solfaroiy to cryptostreetbets [link] [comments]


2021.12.01 21:06 YesIdonot That hate getting their lil grabbies wet

That hate getting their lil grabbies wet submitted by YesIdonot to RATS [link] [comments]


2021.12.01 21:06 Flashy_Bowl_5523 How about a powerbank for your electric car ?

submitted by Flashy_Bowl_5523 to AskReddit [link] [comments]


2021.12.01 21:06 MarloweSL Good evening.

Good evening. submitted by MarloweSL to OverflowingTits [link] [comments]


2021.12.01 21:06 zh_rblx Hendrick Motorsport Concept Livery

Hendrick Motorsport Concept Livery submitted by zh_rblx to F1Liveries [link] [comments]


2021.12.01 21:06 Tall-Elderberry-3167 Message not displaying when I receive it

I am having some difficulties with messages. It used to be when I get a notification my watch would buzz and I could click on the screen and it would show me what the notification is. For example, it would buzz and I would click on it, then the screen would show the snapchat symbol and who the message was from. Any messages that were not responded to I could swipe down from the top to see later, but it would always show me on the home screen when the message first arrived.
Recently, when I feel a buzz on my wrist it does not show the notification origin and I have to swipe down every time and sort through the notifications to try and see where the most recent message is from.
How can I get it to display the message when I tap on the screen again?

Thanks in advance!
submitted by Tall-Elderberry-3167 to AppleWatch [link] [comments]


2021.12.01 21:06 happyme2431 I’ll fuck no limit:fuck, kiss, anal,oral, deepthroat, cream pie and all... I’m available for hoookup service with no restrictions, both incall and outcall. Text me 7246387491

I’ll fuck no limit:fuck, kiss, anal,oral, deepthroat, cream pie and all... I’m available for hoookup service with no restrictions, both incall and outcall. Text me 7246387491 submitted by happyme2431 to HookupsLouisville [link] [comments]


2021.12.01 21:06 sapinpoire snif snif

snif snif submitted by sapinpoire to cats [link] [comments]


2021.12.01 21:06 iriechubs Facts

Facts submitted by iriechubs to wallstreetbets [link] [comments]


2021.12.01 21:06 luhvrrboy How I know we’re winning. Long time holder / Public Eye POV

I’ve been holding XXX since February. Past 3 months I kinda stopped keeping up with the sub. Just sitting and waiting. Went some days not even looking at the price. I had an idea of what was going on. Earnings, crypto, etc. all this was news but nothing coming to fruition. All just talk. And price fluctuated normally whether it went up 5% or down 5%. Nothing to really get me excited or the public eye excited.
But when I saw that they were releasing and NFT for spider man I got excited. I knew this was a big move and I knew it would catch the public’s eye more aswell. All 86k sold out within 24 hours. Movie with probably the most hype this year and NFTs super hot I knew this move was something to be excited for.
When I saw we dropped down to $30 maybe even dipped into the $20s (haven’t been looking. Been looking for the NFT confirmation email lol) I chuckled. They can’t let us get momentum off this because then FUD would kick in and we would moon. They attacked us and they attacked us hard. Why?
BECAUSE THEY ARE SCARED. THE NFT HAS THEM SHAKING.
submitted by luhvrrboy to amcstock [link] [comments]


2021.12.01 21:06 Final_Economy2963 Bitpay card!!!

Has anyone else had an issue with Bitpay holding their money? And if so, who do I need to contact in order to get my funds back?
submitted by Final_Economy2963 to Bitcoin [link] [comments]


2021.12.01 21:06 4423409701 🔥

🔥 submitted by 4423409701 to Blahgigifatty [link] [comments]


http://ivdz.ru