Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichal Janek
Front End Web Development Techdegree Graduate 30,654 PointsThe difference between Python Console and Terminal within PyCharm when you RUN a code.
Maybe it is very obvious but I am a bit confused about the difference. When you RUN a code in PyCharm it will start up in RUN section bellow. Next to it there is a Python Console and a terminal. However for example this code
import os
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
will not happen in Python Console but it will clear the screen in Terminal.
Why?
1 Answer
Allison Schaaf
33,322 PointsHere's a Stack Overflow discussion about using shift+alt+E to run code in the PyCharm console.
https://stackoverflow.com/questions/37017245/command-window-in-pycharm