GithubHelp home page GithubHelp logo

46-simple-python-exercises's Introduction

This list of exercises comprises logical operators, loops, input and output, regular expressions and more in order for people to have a basic overview of the language.

They might not be the best solutions, but I'd be glad to pull your requests.

This repository contains solutions to all 46 exercises I have solved. They're intended as a last resort in case you've tried very hard to solve a problem but you just haven't been able to figure it out.

I made sure to comment the hardest ones, or the ones that gave me some trouble.

How to Download/Clone this project

To download this project, right from your terminal, do:

git clone https://github.com/R4meau/46-simple-python-exercises.git

or simply click here if you don't use git.

Using Python 3?

I implemented all the solutions using Python 2.7.1 but if you're using Python 3.x most of the solutions won't work for you. That's why I created a converter for you to convert all the solutions into Python 3. In the project folder you will notice this file:

  • makepython3.py A converter that uses the 2to3 command

So all you need to do after downloading/cloning the project is

cd 46-simple-python-exercises
python makepython3.py

And it will create a folder called exercisespy3 in the same directory. In this folder you will find all the solutions in Python 3.x.

Sponsors

Sponsor

Enjoy.

46-simple-python-exercises's People

Contributors

gitter-badger avatar nickdotht avatar vikramkalabi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

46-simple-python-exercises's Issues

map() usage

Hey there,
I have a question about exercise 27.

You wrote:

return map(len, words)

I wrote the same at first, but I got this:

In [4]: map(len, words)
Out[4]: <map at 0x10393c828>

This code worked fine:

return list(map(len, words))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.