02-09-01 i/o - input

Ace your homework & exams now with Quizwiz!

Write a statement that reads a string value from standard input into firstWord.

firstWord = input()

Given a variable named line1, read the next line from stdin and save it in line1.

line1 = input()

Write a statement that reads a float value from standard input into the variable temperature.

temperature = eval(input())

Write a statement that reads an integer value from standard input into a variable called val.

val = eval(input())


Related study sets

Chapter 19: Speed, Agility, and Quickness Training Concepts

View Set

Texas Principles of Real Estate 2 - Chp. 3 Real Estate Financing Principles

View Set

Common Birth Defects Practice questions

View Set

Ch 08: Security Strategies and Documentation

View Set

Religious pluralism and theology

View Set