Quiz with Solution for Programming and Problem Solving | COSC 235, Quizzes of Computer Science

Material Type: Quiz; Professor: Sykes; Class: Programming & Problem Solving; Subject: Computer Science; University: Wofford College; Term: Fall 2008;

Typology: Quizzes

Pre 2010

Uploaded on 08/17/2009

koofers-user-i7x
koofers-user-i7x 🇺🇸

8 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4

Partial preview of the text

Download Quiz with Solution for Programming and Problem Solving | COSC 235 and more Quizzes Computer Science in PDF only on Docsity!

ry )) Creede a Fy thon every te map a Color ha me to it red 5rem- blue (RGB) Malt an given in the 444. Co)or Mowe ~T R6B Coloy Dict = { “peach pufh s"attdab’, ——— " peach pubf #ffdab yoyal ble": “ae4lGtel "somabo! > "ae e6347" J royal blue #416904 few oto HAP 6347 a a) The ewncde coley's MARGE equ d vw 255 99,7), (Write thi. RGB Vvedus Ga o Py Harn Toph ( 255, 94,71) \) Exp lain fh diffrsns bebaten a Python lurt anQ o Py fheon dpe In ems a sywhox orn clmanhes. . Eliastipll bbivdh A lute dulemrbel by bracket — °&9+ £135 by paronthiate — %5> (13,5). The moun ob ffeerct om Lomarhcs ib Hat Note ant. rudd while ple arent, 3) Show the vesvlt Wed Python would shoe ne fillowing session: 7 ssp Ish. insert, "a") swe Ist = [2,4, 6,410] ges Ish ; >>> Ist-apyend (2) [z, ‘a’, 10,8, 6,4, 22 SSD Ist >>> de L1G) 2>? £24,6, 8,19, 2] Ist : [2 "a", 10, 6 7l >>> Ist. reverse O) | A" Pz, a", 10, 6, 4, 2 >>> [st oy {st court (2) £2, 10,8,6,4%1 2 bap Ist index(e) 3 }