Once Platypus-Bear has attacked, it will remain an attacking creature for that combat, even if the Lesson card is removed from your graveyard.

Artwork
Loading artwork…
Platypus-Bear
Avatar: The Last Airbender · #236 · EN
Nonfoil—Foil—
Card rules
Defender
When this creature enters, mill two cards. (Put the top two cards of your library into your graveyard.)
As long as there is a Lesson card in your graveyard, this creature can attack as though it didn't have defender.
2/3
Common · Illustrated by Maël Ollivier-Henry
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions