Create a Python program (even_numbers.py) that prints the even numbers in a list of numbers that...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a Python program (even_numbers.py) that prints the even numbers in a list of numbers that is entered by the user. When printing the even numbers, you need to print the index of each number as well. Note: you don't need to define functions in this program. Example run: Enter list items (all int): 8 5 6 1 4 9 The list entered is: [8, 5, 6, 1, 4, 9]. The even numbers in the list with their indexes: my_list [0]: 8 my_list [2] : 6 my list [4]: 4 Create a Python program (even_numbers.py) that prints the even numbers in a list of numbers that is entered by the user. When printing the even numbers, you need to print the index of each number as well. Note: you don't need to define functions in this program. Example run: Enter list items (all int): 8 5 6 1 4 9 The list entered is: [8, 5, 6, 1, 4, 9]. The even numbers in the list with their indexes: my_list [0]: 8 my_list [2] : 6 my list [4]: 4
Expert Answer:
Answer rating: 100% (QA)
The image shows instructions for creating a Python program which Ill refer to as evennumberspy The p... View the full answer
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-1259269868
5th Canadian edition
Authors: Fred Phillips, Robert Libby, Patricia Libby, Brandy Mackintosh
Posted Date:
Students also viewed these programming questions
-
Jim deposits $14.9,000 annually into a life insurance fund for the next 6 years, at which time he plans to retire. Instead of a lump sum, Jim wishes to receive annuities for the next 23 years. What...
-
The most popular colors for compact and sports cars in a recent year are given in the table. 5 Use an appropriate graphical display to describe these data. Percentage 20 Percentage Color Color Silver...
-
2:38 PM O O O 1 all 13) 4 expert.chegg.com Chegg Time remaining: 01:59:54 Advanced Math . Let A E CX m be invertible and suppose A* A = VTV*, where T is tridiagonal and V is unitary. (a) Let T = B*B...
-
Uniform rod AB of length l and mass m lies in a vertical plane and is acted upon by a couple M. The ends of the rod are connected to small rollers which rest against frictionless surfaces. (a)...
-
Suppose that people consume only three goods, as shown in this table: a. What is the percentage change in the price of each of the three goods? b. Using a method similar to the CPI, compute the...
-
Skodel Ltd is a small brewery that is undergoing a major expansion after a takeover by a large European brewery chain. Skodel Ltd produces a range of beers and lagers, and isrenowned for the quality...
-
Explain how an auditor might acquire evidence about each of the follow- ing transactions: (i) Equipment Cash 3,000 3,000 (ii) Equipment 4,000 Creditors 4,000 (iii) Depreciation expense 2,000...
-
Table 3.1 in the last chapter presents R&E Supplies financial statements for the period 2011 through 2014, and Table 3.5 presents a pro forma financial forecast for 2015. Use the information in these...
-
How are best fit and best practice HR practices similar and different, what are the benefits and limitations of each?
-
Glatt Inc. sells large-scale pressure vessels for the chemical industry. On 12/28/2022, a chemical plant ordered a new pressure vessel for $10,000,000. Glatt will build that vessel in 2023 and the...
-
ABC plans to expand its operations and wants to install Plant and Machinery (PM) costing Rs. 75 million. Direct cost, including accessories and installation, is estimated at Rs. 5 million. The...
-
What increases FCF in a given year? List different ways a manager can increase its company's free cash flow in a given year. Is increasing current year FCF always a good idea? Why or why not?
-
A car suffers from 12% annual depreciation. If the initial value is $40,000, find the value after 4 years. Hint: Depreciation means inflation (losing money). Evaluate (2-)-. Simplify (2x). Show that...
-
Let G = (V, E) be an undirected graph. For any subset A, BCV, let C(A, B) denote the set of edges between A and B, i.e., C(A, B) = {e EE e connects some vertex in A and some vertex in B}. Note that,...
-
iversification at Ratcliffe Investments What's the current situation? Sports investors around the world have reaped unprecedented returns in recent years. In the National Basketball Association...
-
What percentage of your gross salary does the Consumer Financial Protection Bureau suggest your student loan payment be in order to be affordable and limit your risk of delinquency and default?
-
Wildhorse Corporation purchased a truck at the beginning of 2020 for $59,000. The truck is estimated to have a salvage value of $2,360 and a useful life of 188,800 miles. It was driven 27,140 miles...
-
If |62x|>9, which of the following is a possible value of x? A. 2 B. 1 C. 0 D. 4 E. 7
-
Custom College Coasters specializes in logo-imprinted drink coasters. The company reported the following balances in its unadjusted trial balance at December 1. The company buys coasters from one...
-
Refer to E9-4. Data From E9-4. Wiater Company operates a small manufacturing facility. On January 1, 2017, an asset account for the company showed the following balances: Manufacturing...
-
A local phone company had a customer who rang up $300 in charges during September 2016, but did not pay. Despite reminding the customer of this balance, the company was unable to collect in October,...
-
The process of expressing a foreign subsidiarys balance sheet in its parents currency is called: A. Currency translation. B. Currency change. C. Currency conversion. D. Currency swap.
-
Home Inc. (a US company) has a wholly-owned subsidiary, S, which it acquired on 1 January X0. The balance sheets of S as at 1 January X0 and 31 December X0 are as set out in Figure 15.1 in foreign...
-
An entitys functional currency is: A. The currency of its parents country. B. The currency of its own country. C. The currency in which the financial statements are presented. D. The currency of the...
Study smarter with the SolutionInn App