Answer: both an acid and base
Explanation: By Bronsted-Lowery acid base theory: proton Donor is acid and proton Acceptor is base.
Here H2O by donating the proton acts as acid.
H2O ------> H^+ + OH^-
And by accepting the proton acts as base
H2O + H+ --------> H3O+