I have installed both python 2.7 and python 3.6 on my computer,
and I have a file called first.py
which contains two lines of code:
print("hello")
print "hi"
and in my command line , I just simply type first
, and it will print out
hello
hi
Why is that? I thought print() is a feature of python 3 and would not work for the second line of my code. Also, is it fine for me to have both python versions installed?