do you need to be good at MATH to learn Python? // Python RIGHT NOW!! // EP 3

About this video

Episode 3 of the creator’s free Python series answers its title question directly: you do not need to be good at math to learn Python, only simple arithmetic. Building on earlier episodes about strings and variables, he introduces numbers using a free browser lab and a continuing robot barista project. He covers three data types — strings (text in quotes), integers (whole numbers), and floats (decimals) — and shows the type() function to inspect them, including the trap that a number in quotes, like ‘31’, is a string, not an integer. He then treats Python as a calculator with +, -, /, *, and ** for exponents, notes that Python follows order of operations and that division produces floats, and stores equations and results in variables. The practical lesson comes from charging for coffee in the robot barista script: set a price variable (he uses $8), ask for quantity with input(), and compute total as price times quantity. That first fails in an instructive way because input() always returns a string, so multiplying repeats the string instead of doing math. The fix is wrapping the value in int() to convert string to integer. The reverse problem appears when printing a sentence with the total: concatenating a string with an integer raises a TypeError, solved by wrapping the number in str(). He finishes by inserting the quantity into the barista’s confirmation message. The series is sponsored by ITProTV, which he says offers a discount with his code.

Key takeaways

  • You only need basic arithmetic for beginner Python: addition, subtraction, multiplication, division, and exponents with **
  • Know the three beginner data types — str for quoted text, int for whole numbers, float for decimals — and check them with type()
  • input() always returns a string, even when the user types a number, which is the most common beginner math bug
  • Convert types explicitly: int() turns a numeric string into an integer for math, str() turns a number into text for sentence building
  • A float appearing in your result is normal after division or when mixing in a decimal value, even if all inputs looked like whole numbers

Episode details: published October 26, 2021 · 20:53 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.


← Previous: FREE Kali Linux in the Cloud (AWS) · Next: Nvidia does cybersecurity?!?…..and networking? →

All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube

Sister brand · Vacation Club Promo

All-inclusive resort stays from $435

Qualified couples: promotional Mexico and Caribbean packages at real resorts. Short presentation during your stay — enjoy the rest of the trip.

Qualifications apply · presentation during stay · no purchase required

Subscribe YouTube Suggest