The Pi 3 B+ is still available for $35, it's what I still use on occasion - as an ad-hoc networked sensor, or an LED or switch controller, or an weird eeprom programmer ...
Sure I could use an arduino in many cases, but the Pi running linux can be very convenient, with bash or regular python or even small unix C utilities (which I can tweak and re-compile right on the Pi!)