Lenny.com
Explore
Create
ActivitiesNewMathEnglish Language ArtsScience & EngineeringSocial StudiesGlobal LanguagesHealth & Physical EducationSpecial EducationCounseling & Life SkillsArts & CreativityESL
Lenny.com
Lenny.com
Explore
Create
ActivitiesNewMathEnglish Language ArtsScience & EngineeringSocial StudiesGlobal LanguagesHealth & Physical EducationSpecial EducationCounseling & Life SkillsArts & CreativityESL
Lenny.com
Lenny.com

Solutions

Lenny for EducatorsLenny for SchoolsLenny for Districts

Product

ExploreSign inCreateSupportAbout

Resources

Getting startedMTSS Acceleration Program

© 2026 Lenny Learning Inc.

TermsPrivacyAccessibility
LinkedInInstagramX
Lenny
Science & EngineeringLife ScienceLiving ThingsAnimalsPlantsBody SystemsTraitsAdaptationsCellsEcosystemsHeredityGenes to TraitsCell DivisionPhysicsComparing MaterialsShapes and PropertiesMagnetsMagnetismLightSoundLight and SoundMatterStates of MatterChanges of StateMixturesPhysical and Chemical ChangeHeating and CoolingHeat and Thermal EnergyEnergyForce and MotionElectrical CircuitsAtoms and MoleculesPeriodic TableMotion in One DimensionMotion in Two DimensionsScalars and VectorsForces and Laws of MotionCircular Motion and GravityMomentum and ImpulseWork, Energy, and PowerWavesElectromagnetic WavesGeometric OpticsElectricity and MagnetismSimple Harmonic MotionThermodynamicsNuclear PhysicsEarth Science & AstronomyWeatherWater CycleRocks and MineralsFossilsEarth's FeaturesEarth's ResourcesEarth's StructureWeather and ClimateEarth EventsFossils and Geologic TimePlate TectonicsHuman ImpactsAstronomyChemistryUnits and MeasurementAtomic StructurePeriodic TrendsChemical BondingNomenclatureMolecular StructureIntermolecular ForcesThe MoleStoichiometryProperties of GasesSolutionsChemical ReactionsBalancing EquationsEnergy ChangesRates of ReactionsEquilibriumAcids and BasesQuantum ModelBiologyClassificationCell StructureThe Chemistry of LifeBiomoleculesCellular TransportCell EnergyCell Growth and DivisionDNAProtein SynthesisMeiosis and Sexual ReproductionPatterns of InheritanceMulticellular OrganismsEvolutionEcologyBiodiversityComputer ScienceAlgorithms and Computational ThinkingProgramming LanguagesComputing SystemsNetworks and InternetData AnalysisCybersecurityAI and Machine LearningSoftware Design and DevelopmentBlockchainEngineering & AIDesigning ExperimentsEngineering PracticesDesign ThinkingEngineering Design ProcessMechanical EngineeringElectrical EngineeringMaterials and StructuresCAD and 3D DesignRoboticsArtificial Intelligence BasicsVibe CodingMachine LearningAI Ethics and SocietySystems ThinkingEntrepreneurship & InnovationEntrepreneurial MindsetBusiness Idea DevelopmentBusiness Plan BasicsMarketing & Customer DiscoveryFinancial Management for Startups

Python Number Power

Students explore integers and floats in Python to calculate totals, averages, and percentages from real-world survey data. This lesson bridges fundamental numeric data types with practical data science calculations.

BFBrandi Flanigan

Python Number Power

Students explore integers and floats in Python to calculate totals, averages, and percentages from real-world survey data. This lesson bridges fundamental numeric data types with practical data science calculations.

BFBrandi Flanigan

Requirements Checklist

  • Ask user for total responses
  • Ask for 1 category of responses
  • Store both as numeric variables
  • Calculate percentage accurately
  • Use round() for 1 decimal
  • Print clean readable sentence
  • Stretch: Calculate Yes & No %

Code Blueprint / Written Program calculator.py

1

2

3

4

5

6

Sample Terminal Output:

✓

Exit Ticket (Show What You Know)

1. Difference between integer and float:

2. Why use float() instead of int() for input?

3. Python formula for calculating a percentage:

4. What does round(number, 1) do?

Python Quick Cheat Sheet

int()

Converts value to a whole number

float()

Converts value to a decimal number

input()

Captures user response as string text

print()

Displays text & variable outputs

round()

Limits decimals: round(val, n)

Model Output (e.g. Total = 19, Yes = 13): 13 / 19 * 100 = 68.421... → Rounded output displays cleanly as: 68.4.

Turn to Page 2 for Debugging Solutions, Project Rubric, and Exit Ticket Key →

Teacher Solutions Guide • Parts 3, 4 & 5

Computing Foundations

✓

Part 3 Solutions: Debugging Challenges

Challenge #1: Price Input Bug

Diagnosis: price is stored as a string. Multiplying a string by 0.07 throws a TypeError: can't multiply sequence by non-int of type 'float'.

Corrected Line 1: price = float(input("Enter the price: ")) Use float() because prices often contain cents (e.g. 19.99).

Challenge #2: Incomplete Math Logic

Diagnosis: The program runs without syntax errors, but produces 0.6, which is a decimal proportion/fraction, not a percentage out of 100.

Corrected Line: percent = yes / total * 100 Output will be 60.0% instead of 0.6.

✓

Part 4 Exemplar: Mini Survey Calculator

Model Solution Code (Includes Stretch Goal)

total = int(input("Total survey responses: "))

yes_votes = int(input("Number of YES votes: "))

no_votes = total - yes_votes

yes_pct = round(yes_votes / total * 100, 1)

no_pct = round(no_votes / total * 100, 1)

print("Survey Results: ", yes_pct, "% Yes | ", no_pct, "% No")

✓

Part 5 Solutions: Exit Ticket

1. Difference between int and float:

An int is a whole number without decimals (e.g., 5, -2); a float represents numbers with decimal points (e.g., 5.0, 3.14).

2. Why use float() instead of int() for input?

Use float() whenever the user might enter decimal amounts (like prices, heights, weights, or averages) to prevent a ValueError.

3. Python formula for a percentage:

part / whole * 100

Note: division happens before multiplication according to standard precedence.

4. What does round(number, 1) do?

Rounds the given floating-point number to exactly 1 decimal place (tenths place) for cleaner presentation.

3 Critical Misconceptions to Watch For

1. Forgetting Casts Students often write total = input(...) and assume it is a number. Remind them input() always returns a string.

2. Average Parentheses Writing a + b + c / 3 divides only c. Remind students that Python obeys PEMDAS: (a + b + c) / 3.

3. Missing * 100 Students often confuse the decimal ratio (0.75) with the percent value (75.0%).

You might also like

Habitability Blueprint Slides

Life Beyond Limits

A one-week interdisciplinary astrobiology sequence investigating Earth's habitability, extreme biological adaptations across eleven Earth species, and the plausibility of life on other celestial bodies.

M

Megan.Tanner

7
Cell Specialization Worksheet

Stem Cell Specialization

A comprehensive biology lesson on stem cells, differentiation, and gene expression based on TEKS BIO.6.B, featuring dual-language student materials in English and Spanish.

MB

Marsha Bolden

2
Spanish Cell Specialization Worksheet

Spanish Cell Specialization Worksheet

A two-page Spanish biology worksheet on stem cells and cell specialization based on TEKS BIO.6.B, styled in a clean 10pt typography with a modern teal laboratory theme, structured vocabulary chunks, pathway cards, diagram canvas, and self-assessment criteria.

MB

Marsha Bolden

Beetle Armor Slides

Beetle Power

A high-interest, accessible science unit for fifth-grade developing readers exploring beetle anatomy, unique adaptations, and diverse beetle species. Incorporates visual vocabulary, supportive sentence frames, and clear graphic organizers.

A

amy_oshea

9
Floating Science Lab Slides

Floating Science Lab

A comprehensive third-grade science lesson exploring the International Space Station, microgravity, astronaut life, and orbital research through structured visuals, simplified text, and engaging activities.

RC

Roni Coleman

3
Cell Specialization Worksheet

Cell Specialization Worksheet

A visually engaging two-page biology worksheet on stem cells and cell specialization based on TEKS BIO.6.B, styled in a clean 10pt typography with a modern teal laboratory theme, structured vocabulary chunks, pathway cards, diagram canvas, and self-assessment criteria.

MB

Marsha Bolden

Broadcast Breakthroughs Slides

Broadcast Tech Spotlight

A dynamic multimedia project sequence where students investigate cutting-edge sports broadcasting technologies, craft scripted storyboards, and produce professional recorded voiceover presentations.

S

Stacy.Bogart

5
Atom Accounting Vocabulary Exam

Matter and Energy Reactions

An 8th-grade NYS-aligned science unit exploring cellular respiration, photosynthesis, and the Law of Conservation of Matter through chemical reaction formulas and atomic accounting.

JE

Jeffrey Elterman

3
Digestive System Reference Guide

Digestive System Reference Guide

A comprehensive two-page anatomical study and reference guide detailing the functions, secretions, and physiological roles of the oesophagus, stomach, small intestine, large intestine, rectum, anus, liver, gall bladder, pancreas, and appendix.

Lenny Avatar
Lenny
Building Blocks Slides

Atomic Foundations

A 3-part comprehensive scaffolded unit exploring matter, atomic architecture, subatomic particles, nuclear calculations, and atomic variations like ions and isotopes.

M

meagan_asp

6
Cellular Energy Vocab Exam

Cellular Energy Engine

A comprehensive 8th-grade science unit assessing cellular respiration, photosynthesis, and the Law of Conservation of Matter aligned to NYS P-12 standards. Includes a synchronized bilingual student exam, a bilingual vocabulary study sheet, and a detailed teacher answer key with exam references.

Lenny Avatar
Lenny
3
Station Explorer Answer Key

Station Explorer Answer Key

A two-page teacher answer key and facilitation guide for the Station Explorer Activity Packet, featuring complete answers, model student responses, scoring rubrics, and instructional tips.

RC

Roni Coleman