spyder 4.1.1 does not print hello world

71 views
Skip to first unread message

john houghton

unread,
Apr 1, 2020, 11:29:57 AM4/1/20
to spyder
I'm basically completely new to anaconda, spyder, and python. I've installed anaconda navigator 1.9.12 (today) that comes with Spyder 4.1.1. The first program in the tutorial runs without apparent error except it doesn't print hello world at least to the console. [stdout pointed elsewhere?] I have restarted my computer (old imac running 10.13.6) several times and reinstalled anaconda three times. I had a previous version of anaconda and spyder that worked fine 2 - 3 months ago. When I logged in today, I was offered to upgrade spyder to 4. That spyder upgrade didn't complete, so I figured to just start again with anaconda navigator. 

def hello():
    """Print "Hello World" and return None."""
    print("Hello World")

Carlos Córdoba

unread,
Apr 1, 2020, 11:37:28 AM4/1/20
to spyd...@googlegroups.com
Hi,

Below that function definition you need to call it, i.e. you need to add this line below

hello()


Cheers,
Carlos

El 27/03/20 a las 6:40 p. m., john houghton escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/be6db53e-ff95-4cb2-99db-294e9cd75bb9%40googlegroups.com.

john houghton

unread,
Apr 1, 2020, 1:49:57 PM4/1/20
to spyd...@googlegroups.com
Hi Carlos,

I'm sorry to have taken your time. Duh. I appreciate the guidance. No need to respond. 

John

Reply all
Reply to author
Forward
0 new messages