TypeError and ValueError
TypeError means an operation met the wrong kind of object, a string where a number was due. ValueError means the type was right and the value was wrong, as when int('abc') is asked to produce a number from letters.
Tutor role in Qatar · Python 3 and the web
Coding tutor jobs in Doha with this role take an adult learner in Qatar from a first print() in Python 3 to a web page of their own in HTML, CSS and JavaScript, kept in Git, in English or Arabic. Qatar's 2024 Labour Force Survey puts more than 800,000 people in managerial, professional, technical and clerical work: your learners.
You teach the first print(), the first loop over a CSV export, the first HTML page, the first commit, and you read every error message aloud with the learner until they can read it alone.
Apply to teachPay in this role follows what you teach and whom you teach: the subject and the learner’s level fix the rate. You see that rate in each lesson offer before agreeing to it, and Edunest pays you once each session is validated.
One course in two halves, taught in the order an adult can put to use.
You teach Edunest's adult coding course to learners in Qatar who have never written a line of code. The course opens in Python 3, because a working adult can put a short script to use within weeks: a loop over a spreadsheet export, a folder of files renamed in one go, a summary written to JSON. Python 2 was sunset on 1 January 2020, so every lesson runs on Python 3, on whatever current release the learner installs that week.
The second half is the web as MDN frames it: HTML for the structure and meaning of a page, CSS for its style rules and layout, JavaScript for the behaviour that updates content while the page is open. Git runs through both halves from the first saved file, so the learner's work has a history and a backup from the start, and a finished page can be pushed to a remote and published.
How far each half goes is decided by the learner's goal. A clerk who wants a weekly report automated spends most of the course inside Python's csv and json modules. A graduate who wants a portfolio page moves to HTML early and returns to Python later for a small script behind a form.
Office workers with a task to automate, and students outside computing degrees.
The National Planning Council's 2024 Labour Force Survey places 117,906 Qatari and 699,056 non-Qatari employed people in four occupation groups: managers, professionals, technicians and associate professionals, and clerks. These are the people who meet spreadsheets, exports and reports every working day, and a good number of them want the report to write itself. They arrive with a concrete task and little appetite for theory, which suits a course that starts from their own CSV file.
University students are the second group. Press figures put Qatar University at about 30,000 students and UDST at over 8,000, and the eight universities of Education City add more. The students who come to this course are mostly outside computing degrees: a business student who needs a script for a data assignment, an architecture student who wants a portfolio page built by their own hand.
The reasons repeat from learner to learner. Some want a career move toward software or data work. Some have a task at the office that a script would run in a minute. Some want a one-page site for a shop or a consultancy in Doha. Many want to read and judge the code that now arrives from AI tools, which 41.8% of Qatar's working-age population used in the first quarter of 2026 by Microsoft's count. And managers want to understand the developers they lead, an audience the Python Institute itself names for its entry-level exam.
Set-up is a lesson in itself, and it ends with a milestone the learner can see.
On Windows the learner meets two install routes, python.org and the Microsoft Store, and the documentation says the two are identical. They then meet the python and py commands, a prompt about adding a directory to PATH, and a shell window unlike anything they have used. You walk them through it on a shared screen until python --version prints a 3.x number and IDLE opens. That is the first milestone, and you treat it as one.
IDLE is Python's own integrated development and learning environment: a shell with colourised input, output and error messages, an editor with smart indent and call tips, and a debugger with breakpoints and stepping. It is an optional module normally included with a Python install, so the learner has a place to type on day one. The choice of editor after that belongs to you and the learner together.
The lesson then follows the official tutorial's own opening: the interpreter as a calculator. Numbers first, and the discovery that / always returns a float while // is floor division. Text next, and the fact that a string cannot be changed in place. Lists last, which can: cubes[3] = 64 replaces an item and cubes.append(216) adds one. From there the tutorial's First Steps Towards Programming gives the learner their first loop, and the lesson closes with a programme they typed themselves.
The tutorial's first steps fill one short section; the learner's own task is where they stall.
Adults who finish a tutorial often cannot begin a programme of their own, because nobody has shown them how to break a task into steps before typing. Your job is to build that first real programme with them, from their own file. The file is usually a CSV export from work, the format spreadsheets and databases use to exchange data, and the Python standard library reads it without a single package installed.
So the middle of the Python half lives in files. open() with the with keyword, so the file closes even when an exception is raised; the modes 'r', 'w' and 'a', and the warning that 'w' erases an existing file; csv.reader for lines and csv.DictReader for rows keyed by their column names; json.dump to write a summary and json.load to read it back, in UTF-8. Formatted string literals turn the totals into a sentence the learner's manager can read.
Each of these is a step the learner names before writing it: open the export, skip the header, add up one column, write the total. When they can say the steps aloud, they can type them, and the programme that results is theirs. The built-in functions they lean on along the way, len, sorted, enumerate, zip, sum, min, max and type, are always available, and you introduce each one the moment the learner's task needs it.
An adult stops at the first traceback; a tutor turns the traceback into the lesson.
The Python tutorial lists syntax errors as the complaint learners meet again and again, and the parser helps by repeating the line and pointing arrows at the place it stopped. IndentationError is a kind of SyntaxError, and it arrives early, because Python refuses to mix tabs and spaces and PEP 8 asks for four spaces per level. You set the four-space habit in the first lesson and the learner is spared a whole class of error.
Exceptions come later and are detected while the programme runs. They are shown with a stack traceback, and the skill you teach is to read it from the bottom line upward, name the exception class, and only then look at the code. Reproducing an error on purpose is part of the method: you ask the learner to misspell a name and watch NameError appear, to add a string to an integer and meet TypeError, to divide by zero and see ZeroDivisionError.
Once the names are familiar, try and except make sense: the try clause runs, a matching except clause handles the error, and an unmatched exception stops the programme with a message. The same habit carries over to the browser, where the inspector shows the broken page and the console names the failing line.
TypeError means an operation met the wrong kind of object, a string where a number was due. ValueError means the type was right and the value was wrong, as when int('abc') is asked to produce a number from letters.
The file or directory requested does not exist, almost always because the path was typed relative to the wrong folder. The learner learns to print the path before opening it, and to keep the export beside the script.
A dictionary key is missing, or a list subscript is out of range. Both appear the first time a CSV export carries an empty row or a renamed column, which is to say in the second week of any real data task.
Three layers, each with its own job, each introduced on the learner's own page.
HTML defines the content and structure of a page and, written properly, the meaning of that content in a form machines can read. MDN's structuring-content module is the map: basic syntax, head metadata, headings and paragraphs, emphasis, lists, structuring documents, links, images, video and audio, table basics and accessibility, forms and buttons, and debugging HTML. The learner builds their one page element by element and watches it change in the browser as they type.
CSS is a language of style rules applied to that HTML: background colours, fonts, content laid out in columns. The layout lessons run from an introduction through floats, positioning, flexbox, grid, responsive design and media queries. Floats were once the common tool for columns and, in MDN's words, have returned to their original purpose now that flexbox and grid exist; adults who learnt from old pages fight floats, and you move them to grid. The second shock is the phone, where the page looks wrong until a media query puts it right.
JavaScript is a lightweight interpreted language the browser receives as text and runs, and the DOM API lets it create, remove and change HTML and CSS. Events come first, then fetch(). A programme in the browser is single-threaded, so a long synchronous loop freezes the page, and fetch() returns a Promise whose data is absent on the next line. You teach callbacks as functions passed into functions, then Promises as the foundation of asynchronous work, because the learner will meet both in any code they copy.
The competence a coding tutor in Qatar brings to an Arabic-reading learner's first site.
A page for a business in Doha is often written in Arabic, and Arabic runs right to left. The W3C's guidance is exact: add dir="rtl" to the html tag whenever the overall document direction is right-to-left, since ltr is the default. MDN adds the sentence every beginner needs: the lang attribute declares the language and does not imply the base direction. A page marked lang="ar" and nothing else stays left-to-right, and the learner cannot see why.
With dir="rtl" on <html>, paragraphs and blocks right-align and table columns progress from right to left. An English snippet inside the page, a product code or a line of code, is isolated with dir="ltr" and lang="en", which is MDN's own example. For text whose direction is known only when the page runs, such as a form field, the value auto lets the browser decide.
Then the CSS mirrors wrongly. margin-left and padding-right are physical, and on a right-to-left page they sit on the wrong side. Logical properties follow the writing direction: margin-inline-start, padding-block-end, inset-inline-end, with the flow-relative values block-start, block-end, inline-start and inline-end. On an Arabic page the start of a line is its right side, and both the W3C and MDN place the base direction in HTML alone. A learner who ships an Arabic page learns all of this in one lesson with you.
Version control is the habit that turns a folder of copies into a project.
Git is a free and open source distributed version control system, and version control, in the Pro Git book's words, records changes to a file or set of files over time so that specific versions can be recalled later. Because Git is distributed, every clone fully mirrors the repository with its whole history, so every clone is a full backup. You say that sentence in the first Git lesson, because it is the one that stops an adult deleting the repository in a panic.
The sequence is short: init or clone, add, commit, then branches and merge. The learner commits their index.html after each lesson and reads the log to see their own progress laid out in order. Pushing to a remote host comes as soon as the page is worth keeping, and it is also how the page gets published.
The first conflict is the moment that matters. When the same part of the same file was changed differently in two branches, Git cannot merge cleanly and prints CONFLICT (content): Merge conflict in index.html, then writes the markers <<<<<<<, ======= and >>>>>>> into the file. The resolution is three steps you take together: edit each marked section, git add the file to mark it resolved, git commit. After one supervised conflict the markers stop being frightening.
The things a tutor in this role commands, each one tested in a real lesson.
You know Python 3 through files and data: numbers, strings, lists, dicts and tuples; if, for and while; functions; try and except; open() with with; the csv and json modules; f-strings; venv and pip. As a map of that half, the Python Institute's PCEP syllabus weights control flow at 29%, data collections at 25%, functions and exceptions at 28% and fundamentals at 18%, and you are comfortable teaching every block of it.
You know the web triad well enough to debug a page live in the browser's developer tools, and Git well enough to resolve a conflict without looking it up. You can explain in English or in Arabic while keeping identifiers, keywords and error messages in English, so the learner can read the documentation alone afterwards. You can build a right-to-left page correctly. And you have the patience for set-up: PATH prompts, two install routes, and virtual environment activation that reads tutorial-env\Scripts\activate on Windows and source tutorial-env/bin/activate on macOS and Linux.
Above all, you can design a small project around an adult's goal and let that project be the syllabus, one working piece a lesson, while the learner types and you explain.
The explanation changes language; the code, the keywords and the documentation stay in English.
Lessons run in the language the learner chooses, English or Arabic. Identifiers, keywords, error messages, the Python documentation and MDN are in English in both cases, and the explanation wraps around them in the learner's language. An Arabic-speaking tutor explains in Arabic and keeps the code and its vocabulary in Latin script, so that after the course the learner can open docs.python.org or MDN and find the very words they heard in the lesson.
This matters for error messages above all. A learner who hears you say NameError in English, inside an Arabic sentence, searches for the right term later and finds the answer. It matters again for the right-to-left page, where an Arabic-reading learner building an Arabic site needs a tutor who reads both the content and the markup.
The learner's goal sets the order, and each lesson adds one piece that works.
A course begins with the goal as the learner names it: automate the weekly export, publish a one-page site, read the code a tool generated, follow what the developers at work are saying. From that goal you draw the sequence. For a data task it runs interpreter, first scripts, files, csv and json, with a little HTML at the end to display the result. For a site it runs a short Python introduction, then HTML, CSS layout and JavaScript on that page, with Git from the first page onward and publishing as the last lesson.
Adults in Qatar learn around a working day, so coding lessons sit in the evening and on the learner's days off. In Ramadan, when working hours in Qatar shorten, evening lessons usually start later, a pattern that returns every year and shapes the spring of any course.
Every lesson ends with something that runs: a script that prints the right total, a page that renders on a phone, a commit in the log. Free tutor replacement holds on this course as on every other: when a learner wants a different tutor, Edunest provides one free of charge, after which the incoming tutor clones the repository, reads the log and carries on from the last commit.
Python, IDLE, a browser, Git: the whole syllabus runs on software the learner downloads once.
The learner brings their own computer running Windows, macOS or Linux, since every set-up step in the Python documentation and in Git assumes one. You bring the teaching material: the sample CSV, the starter HTML, the deliberately broken script that shows a traceback, and the Arabic paragraph that proves a page needs dir="rtl".
Downloaded from python.org or the Microsoft Store, the two being identical. Python is free to use and distribute, and its uses run from web development and database access to scientific computing and education, so the learner's next step after the course is covered.
An optional module normally included with Python, started with python -m idlelib. A shell, an editor with smart indent, and a debugger with breakpoints and stepping: enough for the whole Python half of the course.
python -m venv creates a self-contained directory with its own Python and packages; pip installs from the Python Package Index, with a version pinned by ==. The learner meets both the first time a script needs a package the standard library lacks.
The page half needs a browser and a text editor. The inspector shows the live HTML and CSS and lets the learner change a value and watch the page respond; the console names a failing JavaScript line.
Free and open source, installed once and used in every lesson from the first saved page. A remote host gives the learner a backup and a place to publish from.
Questions tutors ask
Both, in that order. The course opens in Python 3 and moves to HTML, CSS and JavaScript, with Git running through both halves. The learner's goal decides how far each half goes: a data task stays mostly inside Python's csv and json modules, while a portfolio page moves to HTML within a few lessons and returns to Python for a small script behind a form.
From the start, with no programming behind them. The first lessons sit where the official Python tutorial begins, with the interpreter as a calculator and then numbers, text and lists, and where MDN begins, with basic HTML syntax. No maths beyond school arithmetic is assumed. Learners are adults, 18 and over, living in Qatar.
In the evening after the working day and on the learner's days off, because nearly every learner in this course is in full-time work or full-time study. In Ramadan the working day in Qatar is shorter and evening lessons usually move later. A course is planned around those hours from the first lesson.
Python from python.org or the Microsoft Store, which are identical; IDLE as the first editor, since it is normally included with Python and has a shell, smart indent and a debugger; any editor you and the learner agree on afterwards; a browser with developer tools for the web half; and Git. Everything on the syllabus installs in an evening.
Yes. Every set-up step in the Python documentation, from the install manager and the PATH prompt to venv activation and IDLE, assumes a computer running Windows, macOS or Linux, and so does Git. The learner brings their own machine; you bring the sample files and the broken scripts that illustrate a traceback.
Yes. Lessons run in English or Arabic, as the learner chooses. Code, keywords, error messages and the documentation stay in English, and you explain in Arabic around them, keeping the vocabulary in Latin script so the learner can read docs.python.org and MDN alone later. A tutor who can also build a right-to-left page serves Arabic-reading learners who want an Arabic site.
Yes. This role is for a tutor who lives in Qatar and teaches online from there, so you share the learner's working day and evening and can meet them at the hours an adult in Doha actually has. Tutors living abroad apply through the online roles, which carry their own postings.
What a learner takes away is their own working code, kept in Git, and the ability to read the documentation alone. A learner who wants an outside credential can look at PCEP, the Python Institute's entry-level Python exam: 30 questions in 40 minutes with a 70% pass mark, weighted toward control flow, data collections, functions and exceptions. You may tell a learner it exists and leave the decision with them.
Python 3, on whatever current release the learner installs from python.org that week. Python 2 was sunset on 1 January 2020, and a learner who arrives with print "x" from an old tutorial meets a SyntaxError in the first minute; showing them why is a useful early lesson. Point releases change inside a year, so the course names Python 3 alone.
One role covers both, so apply once and say which half you teach with more confidence. A tutor stronger in Python takes the learners with data tasks; a tutor stronger in the web triad takes the learners building a site. Every tutor in the role teaches Git and the set-up lessons, and every tutor can take a learner through the first interpreter session.
Bring Python 3, the web triad and Git, in English or Arabic, and take adults in Qatar from their first print() to a page they publish themselves.