Listed as Free on Udemy when checked on 6 November 2026. No coupon or subscription trial is required for the listed lessons. Enrollment needs a Udemy account; availability can change.
About this course
A useful first Python program can be very small: ask for a value, make a decision, and save a result you can inspect later. Following that path connects syntax with a purpose. It also gives you a manageable way to distinguish the information a user types from the numbers and structures your program actually works with.
Scott Cosentino’s free introduction to Python brings these steps together through ten teaching videos totaling about eighty-six minutes. Its public listing also includes an additional-reading article and two named assignments. The lessons introduce installation, variables, arithmetic, conditions, loops, lists, functions, file input and output, and pip. The stated audience is new programmers, with no prior experience required. This is a foundation for small programs, not a complete application-development qualification.
| Official course | A Brief Introduction to Python |
|---|---|
| Created by | Scott Cosentino |
| Platform | Udemy |
| Language | English |
| Level | Beginner |
| Listed duration | 92 minutes; 11 lectures across 2 sections |
| Completion terms | Not included with a new free enrollment |
What you’ll learn
Follow a Python setup and printing workflow, take input, convert values for arithmetic, and use conditions to choose an action. Organize repeated work through loops and lists, give a function clear inputs and a result, and connect a simple script with a text file. Understand the role of pip and separate project environments.
Skills you’ll gain
- Input handling
- Numeric conversion
- Decision structures
- List iteration
- Function structure
- Text-file workflow
Make input and output visible
Start with a single message and a single input. Run the program, change the message, and confirm that you are executing the file you edited. The installation lesson uses Python and an IDE; menus and setup details can differ from the recording. Keep track of the interpreter selected for your practice project so that later package commands and script runs use the environment you intended.
For an additional editorial exercise, ask for the number of seedlings in a small fictional tray. Python’s input function returns text. Convert an appropriate value before treating it as a count, and consider what should happen if someone types a word instead. Begin with valid inputs you can follow, then make a note of the invalid-input case to investigate as your confidence grows.
Trace the decision before adding repetition
The arithmetic and decision lessons give that count a purpose. Choose a small target for a tray and compare the current count with it. Predict the message for a count below the target, exactly equal to it, and above it. Write the three expected outcomes before running the program. This keeps the condition meaningful and helps you spot a boundary that uses the wrong comparison.
Next, store several fictional tray counts in a list and visit them with a for loop. Compare that with a while loop controlled by a changing condition. Explain both what repeats and what ends the repetition. Strings and lists can both be iterated, but they are not interchangeable: a string is immutable, while a list permits changes to its elements. Choose examples small enough to trace one step at a time.
Keep file work and dependencies deliberate
Move one calculation or decision into a function and give it a name that describes the result. Call it with several counts before connecting it to the input prompt. Separate displaying a message from returning a value that other code can use. The exercise becomes easier to understand when each function has one small responsibility and you can explain which information enters and leaves it.
The file lesson adds persistence to the workflow. For editorial practice, save a short summary to a disposable text file in your project folder, then read it back and compare it with the expected contents. Choose the file mode deliberately: opening an existing file with w truncates it, while a appends. A context manager using with helps close the file when the block finishes, including when an exception occurs.
The pip topic introduces packages that extend Python beyond your own script. Keep project dependencies in a virtual environment and use the interpreter associated with that environment when installing them. Installing a package and importing it in code are different steps. Check current packaging instructions for your operating system, and avoid treating an old editor screenshot as a universal setup requirement.
The material was updated in September 2023. The listed assignments are called File Sums and Area Function; their full instructions and assessment access are not described here. The tray example above is an editorial practice idea, not a reconstruction of either assignment. Allow time beyond the videos to inspect your own outputs and files. No certificate, guaranteed instructor response, professional readiness or career outcome is promised.
Related courses for your next step
- Add a related skillFree Bash Scripting Course
Focus: Script setup · Interpreter selection
Beginner
- Add a related skillFree SQL to Python pandas Course
Focus: DataFrame selection · Boolean filtering
Beginner
Compare course focus, level and study time
| Course | Level | Focus | Study time |
|---|---|---|---|
| This course — Free Python Introduction Course: Turn Inputs into Functions and Files | Beginner | Input handling · Numeric conversion · Decision structures | 92 minutes (Udemy listing) |
| Free Bash Scripting Course: Write Your First Linux Script | Beginner | Script setup · Interpreter selection · Shell builtins | 44 minutes (Udemy listing) |
| Free SQL to Python pandas Course: From Queries to DataFrames | Beginner | DataFrame selection · Boolean filtering · Removing duplicates | 43 minutes (Udemy listing) |
Frequently asked questions
Is programming experience required?
No. The course explicitly targets new programmers and lists no prior requirements.
Does opening a file with w preserve existing contents?
No. The w mode truncates an existing file. Practice with disposable files and choose the mode deliberately.
What practice activities are listed?
The course lists File Sums and Area Function assignments. The seedling-tray example in this article offers a separate way to practice the concepts; it does not reproduce those assignments.
Questions & discussion
Share a useful question or correction. Comments appear after moderation. Please avoid personal or sensitive information.