Upon an indictment for an offense consisting of different degrees the jury may find the defendant not guilty of the degree charged, and guilty of any degree inferior thereto; and upon an indictment for any offense the jury may find the defendant not guilty of the offense but guilty of an attempt to commit the same, where such an attempt is an offense.
Neb. Rev. Stat. §§ 29-2025