Jul-27-2017, 09:02 PM
Basic built in functions like len(),str(),int() and float() do not work in a text.py file but do in IDLE. Does anyone know why and how to fix this. I'm kind of stuck on this until I can move on to the next task.
len("python")
str(100)
int("1")
float(100)
int("110")
int(20.54)
float("16.4")
float(99)
Results in IDLE:
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
RESTART: C:\Users\mhoneycutt.EMSTEC\AppData\Local\Programs\Python\Python36\test1.py
>>>
len("python")
str(100)
int("1")
float(100)
int("110")
int(20.54)
float("16.4")
float(99)
Results in IDLE:
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
RESTART: C:\Users\mhoneycutt.EMSTEC\AppData\Local\Programs\Python\Python36\test1.py
>>>