So this has come up in the last few 5E games I've played.
A Rogue tries to pick a lock, or a fighter tries to climb a wet wall. They fail. Then they immediately ask "Can I try again?" and most DM's are like "umm I don't know..." "Sure"
Is it in the rules anywhere? Or is it up to the DM...