Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What is "Asha:72".split(":")[1], and what type is it? | StemPy Lab
Quizzes
/
What is "Asha:72".split(":")[1], and what type is it?
Python Programming
Medium
High School (11–12)
High School (9–10)
Undergraduate
General
Python Going Further › Files and Data Formats
Created by
StemPy Lab
What is "Asha:72".split(":")[1], and what type is it?
72, as a whole number (int)
Asha, as a text (str)
An error
72, as a text (str)
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program opens notes.txt in mode "w" and calls f.write("hi\n") three times. How many lines does the file have?
The JSON form of a dictionary: what kind of Python value does json.dumps({"a": [1, 2]}) hand back? →
More on
Python Going Further › Files and Data Formats
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A to-do list is kept in a JSON file as a list of texts.
Medium
Write load_list(name) that gives the list that is saved in a JSON file.
Medium
For data = {"p": (1, 2), 3: "x", "t": {"a"}}, say what json.dumps(data) does, and what you must…
Medium
Write a CSV file scores.csv with the header name,score and the rows Asha,72 and Rao, Ravi,85 (the…
Easy
All problems on this topic →