No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
How do I get a recursive function to return a value other than None? For example: [CODE]def function(depth): if depth > 0: function(depth - 1) else: return 10 function(5)[/CODE] returns None, and not 10. |
|
I am trying to make a menubar for my website using CSS and HTML, but the buttons appear in reverse order. Here is some of the source: HTML: [code] <div class="hovermenu"> <ul> <li class="hovertarget"><a href="http://www.teddypwns.com/">HOME</a></li> <li class="hovertarget"><a href="http://www.teddypwns.com/contact-us/">CONTACT US</a></li> <li class="hovertarget"><a href="http://www.teddypwns.com/login.php">MEMBER LOGIN</a></li> </ul> </div> [/code] CSS: [code] .hovertarget a … |