CSC108H1_09SUMMER1_608

For each print statement show the expected output in

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: : Tes Do wn lo ad er ID : 29 85 0 168 ID Te : st 16 80 ID : 16 80 Output Te st Python statements Te st ID : 16 80 print 3 + 8.0 print True and True or False Down load 2985 80 er ID: 298 ID : Te 85 x=5 x=x+x+1+x x+3 print x st ID : 29 : ID Tes t ID: 168 0 ad e r ID : de nt bu dd 29 16 80 Do wn lo ad er ID : 29 85 Do wn lo print ’abc’.find(’b’) * 3 16 : ID 85 29 : ID r Do w nl oa de ut or 5 1680 st on to 1680 Down 98 ID: 80 Test Te ID: .s tu Test x = [1, 2, 3] y = x[2] y += 1 print x nlo y. c 85 st 80 16 Test ID: 1680 Te st ID : Dow om 16 r ID: ade Do wn lo ad er load er ID: 2985 Test ID: 1680 Do wn lo ad er ID : 29 85 Dow nlo ade r ID: 298 5 Downloader ID: 2985 UofT Student Buddy @ http://utoronto.studentbuddy.com Test ID: 1680 This test is copyrighted by the uploader and/or course instructor. Downloader id is shown and also encrypted throughout the document. Unauthorized reproduction/distribution is strictly prohibited. Page 3 of 6 Test ID: 1680 Solution (if any) is NOT audited,...
View Full Document

This note was uploaded on 11/27/2010 for the course CS 108 taught by Professor Paulgries during the Spring '08 term at University of Toronto- Toronto.

Ask a homework question - tutors are online