Make python script to animate vertex points of any object

I am very new to blender and python . i want to make python script which can animate the vertex point of any object (let’s example bpy.data.obajects[‘Cube’])

import bpy

obj = bpy.data.objects["Cube"]
obj.shape_key_add(name="Basis", from_mix=False)

block = obj.shape_key_add(name="1", from_mix=False)  

block.value = 0.0
block.data[0].co = (0,0,0)
block.keyframe_insert(data_path='mute', frame= 0,index=-1)

block.value = 1.0
block.data[0].co = (1,1,1)
block.keyframe_insert(data_path='mute', frame= 50,index=-1)

when i play animation , it instantly change to next keyframe but what I need is smooth transition between two frames

import bpy

cell = bpy.data.objects['Cube']
bpy.context.scene.objects.active = cell

basis_key = cell.shape_key_add('basis')
basis_key.keyframe_insert('value', frame=0)

deform_key = cell.shape_key_add()
deform_key.data[0].co = ( 5 , 5 , 5)

deform_key.value = 0.0
deform_key.keyframe_insert('value', frame = 0)

deform_key.value = 1.0
deform_key.keyframe_insert('value', frame = 200)

the main difference in my script was that i set data_path as “mute” , so i just replaced data_path=“value” and it works :sunglasses: