Question: how to clear shell in Python on Mac using OS X EI Capitan sofrwear with The Calico Project, Version 2.4.2? I tried couple of ways,

how to clear shell in Python on Mac using OS X EI Capitan sofrwear with "The Calico Project, Version 2.4.2"? I tried couple of ways, it gives me error like that (1) python>>> import subprocess as sp .......2> sp. call('cls', shell = True) Traceback (most recent call last): File "", line 1, in File "/Users/javedmohammad/Desktop/Calico/bin/Lib/subprocess.py", line 397, in StandardError: Exception has been thrown by the target of an invocation. (2)

python>>> def cls (): .......2> print(' '* 50) .......3> cls () File "", line 2 print(' '* 50)

^ SyntaxError: expected an indented block

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!