def approp (my_age):
girls_age = my_age / 2 + 7
whenever I enter approp() it respond with girls_age immediately, is that ok? cause in the tutorial typing that will produce nothing.
I'm using Python 3.4.3, no PyCharm
Is there a difference between Python shell and PyCharm in codeing?
Post a Reply
|Oldest Newest Rating|
· May 27, 2015
The python shell is used to try small code snippets and play around with something. It is ok if you call a function to get the returned value printed, the same thing goes for a variable and etc. Keep in mind that if a function returns None it will not be printed. The shell by default does not print None value, if you type None and press enter you wll just be on a new line, unlike for example string which will be printed on the next line.
Halcyon Abraham Ramirez
· May 30, 2015
when you type approp() you are calling your approp function that's why it shows girls_age.
try using IDLE
if you are on windows hit the windows button and search for IDLE and you should see IDLE python GUI or something
This section is all about snakes! Just kidding.
|Bucky Roberts Administrator|