Complete the code to save the animation as a GIF file.
ani.save('animation.[1]', writer='pillow')
To save an animation as a GIF, use the .gif file extension and the 'pillow' writer.
Complete the code to save the animation as an MP4 file using the 'ffmpeg' writer.
ani.save('animation.mp4', writer='[1]')
To save an animation as MP4, use the 'ffmpeg' writer which supports MP4 format.
Fix the error in the code to save the animation as MP4 with 30 frames per second.
ani.save('animation.mp4', writer='ffmpeg', fps=[1])
The fps parameter expects an integer, so use 30 without quotes.
Fill both blanks to save the animation as a GIF with 15 frames per second.
ani.save('animation.[1]', writer='[2]', fps=15)
Use '.gif' extension and 'pillow' writer to save GIF animations.
Fill all three blanks to save the animation as MP4 with 24 frames per second and a bitrate of 1800.
ani.save('animation.[1]', writer='[2]', fps=[3], bitrate=1800)
Use '.mp4' extension, 'ffmpeg' writer, and fps=24 for MP4 animation with specified bitrate.