The choice of whether to buy an acoustic or digital piano largely depends on your lifestyle, individual goals, and musical needs.
An acoustic piano is a classic stringed piano available as either a grand or upright. The basic technology involved with building an acoustic piano has not changed much over the past 150 years. An acoustic piano needs regular tuning (recommended a minimum of twice per year). The acoustic piano also requires that it be kept in a regulated and consistent environment of temperature and humidity.
A digital piano never requires tuning and can function where temperature and humidity regulation can be more erratic. A digital piano has headphone connectivity for silent play and many technological advances allowing for recording, voice changes, and app connectivity with Wifi and Bluetooth. The best digital pianos have graded hammer keyboards that replicate the touch and feel of a fine grand piano. The piano sound is digitally sampled from that of a fine concert grand piano and replicates the acoustical attributes of a fine acoustic piano.