• Stars
    star
    267
  • Rank 152,925 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of simple errors that beginners are likely to hit when they start writing Python.

Improve your Python by fixing errors

We present small code samples that have errors in them. Initially, there is only one error and it is relatively easy to spot. As we move up challenges, there are multiple errors and subtle bugs.

Why do this at all?

By working through these examples, we hope you get better at:

  • reading errors
  • debugging
  • reading and editing other people's code
  • Googling for specific issues
  • solving errors on your own

Motivation for creating this repository

We noticed that people learning new programming languages lack some foundational skills like the ability to read errors, the knowledge to self-correct their own mistakes, the skill to limit their attention to only the relevant lines of code, etc. This repository is a collection of simple errors that beginners are likely to hit when they start to write Python code. Our idea is to present exercises in which beginners can experience errors and try to solve them on their own.

This repository has been created and maintained by Qxf2 Services. Qxf2 provides QA consultancy services for startups. If you found this repository useful, please let us know by giving us a star on GitHub.

How to use this repository

We suggest you do the following

  1. Fork this repository

  2. In your terminal prompt (git bash, command prompt, etc.), navigate to each challenge directory (e.g.: 01_challenge)

  3. Run the one Python script in the challenge directory (python 01_challenge.py)

  4. It should throw an error that reads similar to the .png in the challenge directory

  5. Fix the error and rerun

  6. If all goes good, you should see the output of running fizz buzz

  7. Once you fix the issue, update the readme file in the challenge directory (01_readme.md) with:

    a. what part of the error message gave you a clue

    b. how you set about solving the issue (e.g.: I Googled XXXX that didn't help me narrow down my problem. After that, I tried Googling Python XXXX and finally ended up Googling for Python XXXX error. Then I found a page that looked promising because YYYY. Much thanks to reddit user /u/danielsgriffin for this tip!)

    c. summarize what you learned.

  8. Don't forget to commit your fixed code and updated readme

  9. Pro tip: Once you are setup, try your best to timebox each exercise to no more than 10-minutes. We recommend this tip for even rank beginners who know nearly nothing about Python!

NOTE: To get the most out of these exercises, we think beginners should use an IDE (e.g.: Visual Studio Code), use git and use one git branch per challenge. These are peripheral habits to the main exercises but they will go a long way in making you more comfortable in working with code.

More Repositories

1

qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
Python
256
star
2

qa-interview-web-application

This simple web application is an ideal 'product' for interviewing QA. Think of it as the 'fizz-buzz' equivalent for QA. It has been seeded with bugs. The readme has suggestions on how you can interview QA using this web application.
HTML
47
star
3

selenium-beginners

A simple Selenium + Python tutorial with 11 well crafted working examples.
Python
45
star
4

makemework

Fix the issues in this repo and make the program work.
Python
20
star
5

newsletter_automation

Automate the generation of Qxf2 newsletter
Python
10
star
6

GMail

Page Object implementation example by Qxf2 Services: Python, Selenium, GMail. NOTE: This repo has been superseded by: https://github.com/qxf2/qxf2-page-object-model
Python
10
star
7

weather-shopper

Qxf2 uses this utility to train folks on Selenium automation and Python.
HTML
9
star
8

qxf2-lambdas

A collection of different Qxf2 lambdas
Python
8
star
9

scratchpad

This is a collection of group code exercises that Qxf2 does every two weeks. We do not expect this repo to be useful to anyone outside of Qxf2
Python
6
star
10

cars-api

A sample REST application to help testers learn to write API automation
HTML
5
star
11

sample-python-solid-app

A sample Python Flask app Qxf2 wrote to tinker with Inrupt's Solid
HTML
5
star
12

tsqa-basic

Python
4
star
13

interview-scheduler

This repo contains code needed for the Qxf2 interview scheduler application.
Python
4
star
14

wisdomofreddit

Code for wisdom of reddit
HTML
3
star
15

qxf2-survey

Home for Qxf2's help survey
Python
3
star
16

python-data-cleaning-blogpost

This repository contains the one csv file used in this blogpost: https://qxf2.com/blog/cleaning-data-python-pandas
3
star
17

practice-testing-ai-ml

Testers, use the apps in this repo to practice testing applications that us AI and Machine Learning.
HTML
3
star
18

hospitals-near-me

This web application lets you find out highest overall rated hospitals within in 20-mile radius a (USA) zip code.
Python
3
star
19

Flask_SES_Form

HTML
2
star
20

rust-lambda-action

To create an action which will help in deploying Rust lambdas
2
star
21

skype_bots

Code for Qxf2 Skype bots
Python
2
star
22

the-bored-qa

A site that shows a random question or situation that make the QA __think__ for themselves and serve as good starting points for discussion and deeper exploration.
HTML
2
star
23

gitlog-insights

A way to get useful information from Git logs that can benefit testing team
Python
1
star
24

py_isolid

This is a Python module to work with Inrupt's Solid.
1
star
25

rust-selenium-beginners

A simple Selenium + Rust tutorial with 11 well crafted working examples.
Rust
1
star
26

chess-heatmap-PyPI-package

Python
1
star
27

context-based-qa-rag

Context-based Question Answering using RAG
Python
1
star
28

sample-lambda-heart-rate

Demo of a web application (Python Flask) invoking a Lambda funtion
HTML
1
star
29

chess-heatmap

A python project which produces a control heatmap for a chess game.
Python
1
star
30

bitcoin-info

1
star
31

qxf2-employees

A standalone service for Qxf2 employee information
Python
1
star
32

training-senior-qa

Qxf2 hackathon project. Develop the necessary application, exercises, infrastructure, slide shows, write-ups, etc. for retraining senior QA engineers
HTML
1
star
33

qxf2-email-bots

This repository contains code used by Qxf2's email bots
Python
1
star
34

flask-tutorial-demo

This tutorial was used to give a one-hour live demo on writing a web application with Flask.
Python
1
star