![airsealands](/avatars/18886.jpg)
airsealands
12.08.2019 •
Engineering
These engineers focus on a balance between hardware, software, networks, and processors. they may design products such as cell phones, airplanes, small appliances, automobiles, and personal computers → petroleum engineer t true f false
Solved
Show answers
More tips
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
Answers on questions: Engineering
- C Chemistry What is the difference between base alkali and acid in chemistry?...
- A Arts Tipos de mecanismos para realizar el movimiento explica cada uno ...
- M Mathematics I really don t understand this ...
- M Mathematics Dont ask me why but who wanna rp...
- B Biology Is it ethical to make changes to human DNA? What are the dangers of this?...
- E English Hi, anybody free here?...
- B Biology Almost all frogs undergo external fertilization...
- E Engineering Find the derivative of x ...
- M Mathematics HELP MY MATH HW IS 6 QUESTIONS SO HELP ME PLEASEEEE...
- E English To persuade the reader to agree with the writers position/opinion is the purpose of what text type? A. Narrative b. Argumentative c. Discussion d. Descriptive...
Ответ:
def script_input():
chances = 2
while chances > 0:
global rows
global columns
global constant
rows = int(input("Enter the number of rows: "))
columns = int(input("Enter the number of columns: "))
constant = int(input("Enter the constant: "))
if rows > 0 and rows <= 8 and columns > 0 and columns <= 8 and \
isinstance(constant, int):
chances -= 2
else:
chances -= 1
script_input()
print(f"{rows} rows, {columns} columns, value of {constant}")
Explanation:
The python script defines a function that gets the user input of row, column and constant value variables, then the script prints out the number of rows and columns for the matrix to be created.