SlideShare a Scribd company logo
Language/Type: What output is produced by the following program? def carbonated(coke, soda,
pop): print("say", soda, "not", pop, "or", coke) def main(): soda = "coke" pop = "pepsi" coke = "pop"
pepsi = "soda" say = pop carbonated (coke, soda, pop) carbonated (pop, pepsi, pepsi) carbonated
("pop", pop, "koolaid") carbonated (say, "say", pop) main() line 1 say coke not pepsi or pop line 2
say soda not soda or pop line 3 say pop not pepsi or koolaid

More Related Content

More from adityacommunication1

Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
Lab8  Controlling traffic using Extended ACL Objectives Per.pdfLab8  Controlling traffic using Extended ACL Objectives Per.pdf
Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
adityacommunication1
 
Lab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdfLab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdf
adityacommunication1
 
Lab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdfLab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdf
adityacommunication1
 
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdfLa mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
adityacommunication1
 
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdfLAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
adityacommunication1
 
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdflab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
adityacommunication1
 
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdfLa venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
adityacommunication1
 
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdfLa Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
adityacommunication1
 
La transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdfLa transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdf
adityacommunication1
 
La ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdfLa ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdf
adityacommunication1
 
La transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdfLa transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdf
adityacommunication1
 
La teora del orden jerrquico de MyersMajluf predice que l.pdf
La teora del orden jerrquico de MyersMajluf predice que l.pdfLa teora del orden jerrquico de MyersMajluf predice que l.pdf
La teora del orden jerrquico de MyersMajluf predice que l.pdf
adityacommunication1
 
La toma de decisiones no rutinarias que se produce en respue.pdf
La toma de decisiones no rutinarias que se produce en respue.pdfLa toma de decisiones no rutinarias que se produce en respue.pdf
La toma de decisiones no rutinarias que se produce en respue.pdf
adityacommunication1
 
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdfLa tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
adityacommunication1
 
La teora de los fondos prestables del inters muestra que l.pdf
La teora de los fondos prestables del inters muestra que l.pdfLa teora de los fondos prestables del inters muestra que l.pdf
La teora de los fondos prestables del inters muestra que l.pdf
adityacommunication1
 
La Revolucin Industrial fue un factor en una explosin demo.pdf
La Revolucin Industrial fue un factor en una explosin demo.pdfLa Revolucin Industrial fue un factor en una explosin demo.pdf
La Revolucin Industrial fue un factor en una explosin demo.pdf
adityacommunication1
 
La reproduccin en uno de los siguientes rdenes implica el .pdf
La reproduccin en uno de los siguientes rdenes implica el .pdfLa reproduccin en uno de los siguientes rdenes implica el .pdf
La reproduccin en uno de los siguientes rdenes implica el .pdf
adityacommunication1
 
La responsabilidad es clara Hay ventajas de ahorro de cost.pdf
La responsabilidad es clara  Hay ventajas de ahorro de cost.pdfLa responsabilidad es clara  Hay ventajas de ahorro de cost.pdf
La responsabilidad es clara Hay ventajas de ahorro de cost.pdf
adityacommunication1
 
La principal diferencia entre los mtodos de pago y compr.pdf
La principal diferencia entre los mtodos de pago y compr.pdfLa principal diferencia entre los mtodos de pago y compr.pdf
La principal diferencia entre los mtodos de pago y compr.pdf
adityacommunication1
 
La principal diferencia entre un celoma y un pseudoceloma es.pdf
La principal diferencia entre un celoma y un pseudoceloma es.pdfLa principal diferencia entre un celoma y un pseudoceloma es.pdf
La principal diferencia entre un celoma y un pseudoceloma es.pdf
adityacommunication1
 

More from adityacommunication1 (20)

Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
Lab8  Controlling traffic using Extended ACL Objectives Per.pdfLab8  Controlling traffic using Extended ACL Objectives Per.pdf
Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
 
Lab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdfLab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdf
 
Lab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdfLab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdf
 
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdfLa mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
 
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdfLAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
 
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdflab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
 
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdfLa venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
 
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdfLa Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
 
La transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdfLa transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdf
 
La ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdfLa ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdf
 
La transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdfLa transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdf
 
La teora del orden jerrquico de MyersMajluf predice que l.pdf
La teora del orden jerrquico de MyersMajluf predice que l.pdfLa teora del orden jerrquico de MyersMajluf predice que l.pdf
La teora del orden jerrquico de MyersMajluf predice que l.pdf
 
La toma de decisiones no rutinarias que se produce en respue.pdf
La toma de decisiones no rutinarias que se produce en respue.pdfLa toma de decisiones no rutinarias que se produce en respue.pdf
La toma de decisiones no rutinarias que se produce en respue.pdf
 
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdfLa tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
La tecnologa avanza rpidamente en muchos Servicios de Apoy.pdf
 
La teora de los fondos prestables del inters muestra que l.pdf
La teora de los fondos prestables del inters muestra que l.pdfLa teora de los fondos prestables del inters muestra que l.pdf
La teora de los fondos prestables del inters muestra que l.pdf
 
La Revolucin Industrial fue un factor en una explosin demo.pdf
La Revolucin Industrial fue un factor en una explosin demo.pdfLa Revolucin Industrial fue un factor en una explosin demo.pdf
La Revolucin Industrial fue un factor en una explosin demo.pdf
 
La reproduccin en uno de los siguientes rdenes implica el .pdf
La reproduccin en uno de los siguientes rdenes implica el .pdfLa reproduccin en uno de los siguientes rdenes implica el .pdf
La reproduccin en uno de los siguientes rdenes implica el .pdf
 
La responsabilidad es clara Hay ventajas de ahorro de cost.pdf
La responsabilidad es clara  Hay ventajas de ahorro de cost.pdfLa responsabilidad es clara  Hay ventajas de ahorro de cost.pdf
La responsabilidad es clara Hay ventajas de ahorro de cost.pdf
 
La principal diferencia entre los mtodos de pago y compr.pdf
La principal diferencia entre los mtodos de pago y compr.pdfLa principal diferencia entre los mtodos de pago y compr.pdf
La principal diferencia entre los mtodos de pago y compr.pdf
 
La principal diferencia entre un celoma y un pseudoceloma es.pdf
La principal diferencia entre un celoma y un pseudoceloma es.pdfLa principal diferencia entre un celoma y un pseudoceloma es.pdf
La principal diferencia entre un celoma y un pseudoceloma es.pdf
 

Recently uploaded

Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 

LanguageType What output is produced by the following prog.pdf

  • 1. Language/Type: What output is produced by the following program? def carbonated(coke, soda, pop): print("say", soda, "not", pop, "or", coke) def main(): soda = "coke" pop = "pepsi" coke = "pop" pepsi = "soda" say = pop carbonated (coke, soda, pop) carbonated (pop, pepsi, pepsi) carbonated ("pop", pop, "koolaid") carbonated (say, "say", pop) main() line 1 say coke not pepsi or pop line 2 say soda not soda or pop line 3 say pop not pepsi or koolaid