jgallardob Posted May 17, 2014 Report Share Posted May 17, 2014 Hola Estoy tratando de hacer unas funciones en python... todo ok excepto por un item... Ej:programo la funcion (o subrutina): def bienvenida(): print "Hola Mundo" al dar print bienvenida() indica:Hola MundoNonecomo puedo quitar el none?Saludos Link to comment Share on other sites More sharing options...
AshWilliams Posted May 20, 2014 Report Share Posted May 20, 2014 No pos man....no tenis que llamarla con print, sino simplemente bienvenida() pos :tonto: PS: Te dejo el ejemplo: http://www.codeskulptor.org/#user33_EsUcRd4KgA_0.py Saludos Link to comment Share on other sites More sharing options...
Jebusin Posted January 8, 2016 Report Share Posted January 8, 2016 puedes probar: def hola(): return "hola mundo" y la llamas:print hola() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now