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 does json.loads(json.dumps((1, 2))) give? | StemPy Lab
Quizzes
/
What does json.loads(json.dumps((1, 2))) give?
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 does json.loads(json.dumps((1, 2))) give?
An error
"(1, 2)", a text
(1, 2), a tuple
[1, 2], a list
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← Which module reads a CSV line such as "Rao, Asha",72 correctly, with a comma inside the name?
A program saves its data with open("data.json", "w") at the start of every run, before it loads the old data. What is the problem? →
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 →