Cool stuff for Mac
Recently, I got a Mac. This means I’ll be able to help a lot more with Mac problems on our author forums and on this blog. In related news, here’s a cool trick for Macs only. You can make your program talk to you! Start by importing os. OS is a module that lets you interact with your computer’s operating system. Then, type the following:
#For some reason, apostrophes don’t work.
name = raw_input(“What’s your name?”)
# It’s good to put it on the screen as well,
# in case users don’t have their speakers on.