Python Output finding 3
L1 = [1, 1.33, 'GFG', 0, 'NO', None, 'G', True]
val1, val2 = 0, ''
for x in L1:
if(type(x) == int or type(x) == float):
val1 += x
elif(type(x) == str):
val2 += x
else:
break
print(val1, val2)
6 years ago
4
Answer(0)
other Questions(10)
- Professor Washington Watson
- Week 3 Assignment BUS 311 Business Law I
- QNT351 Week 3 Summarizing and Presenting Data TEAM PAPER
- ECON ASSIGNMENT. ANALYSIS TYPE UP. SEND HANDSHAKES I WILL PICK. CHECK ATTACHMENTD
- A WORK POWERPOINT IN 15 HOURS
- 2 short essays (2-3pages Total)
- PSY 300 Week 3 Individual Assignment Gardner Intelligence Paper
- "Understanding OM" Please respond to the following: •Compare and contrast an existing organization’s three major functions (i.e., finance, marketing, and operations), and then justify the interdependence that operations have to finance and marketing. Prov
- RE: Introduction
- BA Assignment 2