A Newbie’s Guide to Python Functions

This article was originally posted on the IpSwitch.com blog. Not quite sure how functions work in Python? We’ve got you covered, here’s a guide to get you started. As with just about every programming language, Python has a concept called functions. At their simplest, functions are groupings of code that perform a certain task. Typically, functions are typically created when a certain task needs to be performed that requires more than one line of code. Functions are a great way to package up multiple lines of code which then provides the user an easy way to run all of that code at once instead of typing each line, hitting Enter and repeating. In Python, a function is created by using the def keyword which creates a function definition. The def keyword is an indicator to the Python interpreter that some code immediately following the def keyword will be a function and to treat it like that. The def keyword is […]

Read more

Getting Started With PyCharm

This article was originally posted on the IpSwitch.com blog. In the Python world, PyCharm is designed to be the integrated development environment (IDE) necessary for any successful coding project. PyCharm is an IDE specifically designed for Python programming. While it’s possible to develop Python code within a number of different IDEs, PyCharm is the most popular. Developed by JetBrains, PyCharm offers a wide range of features to support beginners. At the same time, it allows you to customize themes and plugins to suit advanced developers. PyCharm offers a variety of services like database tooling, project options for web development, a programming text editor, syntax highlighting, project navigation and code completion among others. With an integrated terminal and a built-in PEP8-based unit testing test runner, PyCharm makes great tool that increases productivity while coding. Some features to note in PyCharm are: Integrated debugger. Allows easy debugging right in the editor. Intelligent refactoring. When you […]

Read more

PowerShell to Python And Back

This article was originally posted on the IpSwitch.com blog. If you’ve read any of my previous articles, you will understand that I’m a huge PowerShell guy. I’ve been working with PowerShell for nearly ten years now and with the latest 2 of those years have been primarily a PowerShell developer writing PowerShell code full-time. I love PowerShell and automation, and if you’re in charge of automating any kind of Microsoft product, you probably know a thing or two about PowerShell too. But, PowerShell is not the only game in town; enter Python. People inside of the Microsoft community (which I’m a part of) love PowerShell and use it every day, but there’s an entirely new world out there in open-source land. The Linux world is also a thriving community full of great operating systems, tools and products to manage things. In Linux land, when it comes to scripting, PowerShell is the weakling on […]

Read more