LearnPy Hub
← Matplotlib Charts problems
Hard

Save a Chart

Plot the input values, save the figure as chart.png with savefig, then print whether the file exists and whether its first 4 bytes are the PNG signature b'\x89PNG'.

Input

One line of integers.

Output

Two lines.

Sample 1

Input
1 2 3
Output
True
True

Sample 2

Input
5
Output
True
True
solution.py
Output appears here
Save a Chart · Python practice problem · LearnPy Hub