Configuration

Night mode

Problem solving

Learn Python Essentials for Data Science Course

Engineers From These Top Companies and Universities Trust EXLskills

1M+ Professionals | 100+ Institutions

This is the EXLskills free and open-source Python Introduction Course. It guides learners via explanation, demonstration, and thorough practice, from no more than a basic understanding of Python, to a moderate level of essential coding proficiency.

Is this course FREE?

Yes, this a 100% free course that you can contribute to on GitHub here!

Have more questions?

Lists and Dictionaries

Problem solving

Applying your skills to Advanced Functions & Problem Solving

There will be multiple times when you encounter a hard problem that you need to solve. In this basic course, I am going to outline the skill - solving process that I follow to get through these more difficult problems.

Here we are going to solve the following problem:

Given a number, write a function to output its reverse digits. (e.g. given 123 the answer is 321) Make sure that if it is a negative number you keep the negative in the front (-123 becomes -321)

I am going to write a function that solves this, and apply many of the skills that we have learned through this course.

Start with a function:

def reverse_number(number):
"""
INPUT: a number that we want to reverse.
OUTPUT: reversed number
"""
pass
#Reverse the number
return reversed_number

When the number comes in, we want to turn it into a string, and then that string into a list.