Symmetric Difference

Received via email a message regarding the following HackerRank challenge: https://www.hackerrank.com/challenges/symmetric-difference?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign

I liked that a refresher / tutorial preceded the actual challenge.

If interested use the above mentioned link and read the requirements.

Following is a screen capture from the Python console from the Spider 3 IDE: Continue reading “Symmetric Difference”

Tuples

Received an email from HackerRank to solve a Tuples challenge:  https://www.hackerrank.com/challenges/python-tuples?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign

If interested take a look at the requirements.

After reading the requirements, using the Spyder 3.1.0 IDE I came up with a solution which did not have a need for the first line from the Sample Input. The Sample input follows: Continue reading “Tuples”

Last Python Intro Challenges

Seems like in the past couple weeks I have been getting up earlier than usual. I decided to complete the remaining introduction Python challenges at HackerRank. If you are interested please take a look at the following URL:  https://www.hackerrank.com/domains/python/py-introduction

For these challenges I decided to use Spyder 3 IDE. I am using:  Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] Continue reading “Last Python Intro Challenges”

Integers Come in All Sizes

I received an email message with a HackerRank challenge. If interested the simple challenge is located at the following URL:  https://www.hackerrank.com/challenges/python-integers-come-in-all-sizes?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign

The challenge is quite simple when using Python. Since Python 3 the distinction between integers, long integers and unlimited size integers is gone. In Python 3 an integer could probably take all the virtual memory in your machine ;o). Continue reading “Integers Come in All Sizes”

Python Divmod and Mod Power

I received via email a couple messages with two easy Python challenges named “Mod Divmod” and “Power – Mod Power”. Following are links to the challenges:

https://www.hackerrank.com/challenges/python-mod-divmod?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign

https://www.hackerrank.com/challenges/python-power-mod-power?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign Continue reading “Python Divmod and Mod Power”

Calculator in Python

As I have mentioned on different occasions, I like to read technical topics in order to review and learn new things. This weekend I decided to spend some time with Tkinter.

For starters Tk is a free and open-source, cross-platform widget toolkit that provides a library of basic elements of GUI widgets for building a graphical user interface (GUI) in many programming languages. Continue reading “Calculator in Python”

Python: Division

I received an email message from HackerRank suggesting a Python challenge. The challenge is described in the following URL:  https://www.hackerrank.com/challenges/python-division?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign

Following is the output from a console using Visual Studio 2013 Professional with the PTVS (Python Tools for Visual Studio) plug-in using the sample input data: Continue reading “Python: Division”

Python If-Else

Do not have much time this morning so I just addressed the next challenge in the Python Introduction set at HackerRank named Python If-Else that you can find at:  https://www.hackerrank.com/challenges/py-if-else

This challenge tests the ability to write a set of correct if-then-else set of statements (including nested conditions). Continue reading “Python If-Else”