Consider a list of lists representing a 3x3 grid For example: >MyGrid-[["A","B“,"C"), ["D“, "E“, "F"), ["G", "H“,"I")] MyGrid would therefore represent the grid A BC DE F GHI| Part 1 Create a function Flip which would take such a grid as a parameter and flip to top row and the bottom row. Eg in the case of MyGrid Flip would create retun a grid as follows GHI DE F A B|C| Therefore: >Flip (MyGrid) [["6","H","I"),("D","E","F"), ("A","B","C"]]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

make a python program

AutoSave
Python Lists _ Loops Workshop - Word
P Search
Sarvinoz Abdumalikova
ff
SA
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Help
A Share
P Comments
X Cut
- A^ A Aav Ao
Find
Times New Roma v 12
AaBbCcL AaBbC AaBbCcI AaBbCcl AaBbCcD AaB
LB Copy
E Replace
Paste
BIU v ab x, x A vev Av
Emphasis
Heading 1
I Normal
Strong
Title
Dictate
Sensitivity
Editor
Reuse
Subtitle
S Format Painter
A Select v
Files
Clipboard
Font
Paragraph
Styles
Editing
Voice
Sensitivity
Editor
Reuse Files
Consider a list of lists representing a 3x3 grid
For example:
>MyGrid=[["A","B“,"C"],["D","E","F"], ["G", "H","I"]]
MyGrid would therefore represent the grid
A
B
D
E
F
G
HI
Part 1
Create a function Flip which would take such a grid as a parameter and flip to top row
and the bottom row.
Eg in the case of MyGrid Flip would create return a grid as follows
G
HI
D
E
F
А В С
Therefore:
>Flip (MyGrid)
[['G", "Η"_"I"], [VD", "EV, "F"],"Α", "B", "C"] ]
Page 2 of 3
250 words
English (United Kingdom)
D Focus
100 %
14:22
1) ENG
122
24.04.2021
| « [ > 1>
Transcribed Image Text:AutoSave Python Lists _ Loops Workshop - Word P Search Sarvinoz Abdumalikova ff SA File Home Insert Design Layout References Mailings Review View Help A Share P Comments X Cut - A^ A Aav Ao Find Times New Roma v 12 AaBbCcL AaBbC AaBbCcI AaBbCcl AaBbCcD AaB LB Copy E Replace Paste BIU v ab x, x A vev Av Emphasis Heading 1 I Normal Strong Title Dictate Sensitivity Editor Reuse Subtitle S Format Painter A Select v Files Clipboard Font Paragraph Styles Editing Voice Sensitivity Editor Reuse Files Consider a list of lists representing a 3x3 grid For example: >MyGrid=[["A","B“,"C"],["D","E","F"], ["G", "H","I"]] MyGrid would therefore represent the grid A B D E F G HI Part 1 Create a function Flip which would take such a grid as a parameter and flip to top row and the bottom row. Eg in the case of MyGrid Flip would create return a grid as follows G HI D E F А В С Therefore: >Flip (MyGrid) [['G", "Η"_"I"], [VD", "EV, "F"],"Α", "B", "C"] ] Page 2 of 3 250 words English (United Kingdom) D Focus 100 % 14:22 1) ENG 122 24.04.2021 | « [ > 1>
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education