Computer Science - Text-Based Programming - Python - Input and output - Complete the Programs

Fill in missing input/output code. P1: 'Ask user's age and print if they can vote.' → age = ___(input('How old are you? ')) [int] → if age >= 18: print(___) ['You can vote!']. P2: 'Ask for two numbers and print their sum.' → a = float(input(___)) ['Enter first number: '] → b = float(input('Enter sec

Edodovivmagarwal
Computer Science - Text-Based Programming - Python - Input and output - Complete the Programs
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Text-Based Programming - Python - Input and output - Complete the Programs

vivmagarwal
vivmagarwalJan 29, 2026

Description

Fill in missing input/output code. P1: 'Ask user's age and print if they can vote.' → age = ___(input('How old are you? ')) [int] → if age >= 18: print(___) ['You can vote!']. P2: 'Ask for two numbers and print their sum.' → a = float(input(___)) ['Enter first number: '] → b = float(input('Enter sec

Details

Computer ScienceText-Based Programming - PythonClass 6, Class 6, Stage 7, Grade 6

Engagement

20

Likes

0

Remixes

0

Comments