Pycharm Tutorial
Pycharm Useful Resources
Selected Reading
- Pycharm - Flask
- Pycharm - Pyramid
- Pycharm - Django
- Pycharm - Web Frameworks
- Pycharm - Exporting Data
- Pycharm - Database Tools
- Pycharm - Tips
- Pycharm - JavaScript Support
- Pycharm - HTML & CSS Integration
- Pycharm - Integration of Version Control
- Pycharm - Debugging & Breakpoints
- Pycharm - Interpreters
- Pycharm - Console
- Pycharm - Improving & Writing Code
- Pycharm - Micros
- Pycharm - Macros
- Pycharm - Omni
- Pycharm - Shortcuts
- Pycharm - Keymaps
- Pycharm - Understanding Basics
- Pycharm - Installation
- Pycharm - Introduction
- Pycharm - Home
Pycharm Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Pycharm - Console
Pycharm - Console
PyCharm has a full-fledged Python console with full code completion which is available in the option menu Tools -> Run Python Console.
Consider the code which was mentioned in the previous chapter, as shown below −
message = GIEWIVrGMTLIVrHIQS #encrypted message LETTERS = ABCDEFGHIJKLMNOPQRSTUVWXYZ for key in range(len(LETTERS)): translated = for symbol in message: if symbol in LETTERS: num = LETTERS.find(symbol) num = num - key if num < 0: num = num + len(LETTERS) translated = translated + LETTERS[num] else: translated = translated + symbol print( Hacking key #%s: %s % (key, translated))
Now, let us run the code with the help of console to execute the script for getting the desired output, as shown below.
You can observe the output as shown below −
Advertisements