Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
String Methods and Formatting
Grade Level
Computer Science
HSCS.115 String Methods and Formatting
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A CSV field stores field = "red,blue, green". Which approach handles optional spaces after commas most reliably?
A
Use field.replace(",", "" ) only
B
Use [part.strip() for part in field.split(",")].
C
Use field.strip(", " ) only.
D
Use field.split(", " ) only.
Submit Answer