from manim import *
import numpy as np
from numpy import array, pi, cos, sin
run_time = 1
data = [[1, 2], [3, 4]]
def dot(pos, **kwargs):
    return Dot(pos, **kwargs)
class Z0120(Scene):
    def construct(self):
        sc = self
        cursor = Rectangle(height=0.5, width=0.05, fill_color=WHITE, fill_opacity=1, stroke_width=0)
        wrong_code_line = Text("prtin('Hello, Manim!')", font='Monospace').scale(0.7)
        correct_part = Text('print', font='Monospace').scale(0.7).move_to(wrong_code_line[0:5], aligned_edge=LEFT)
        cursor.move_to(wrong_code_line.get_left() + LEFT * 0.1)
        self.play(TypeWithCursor(wrong_code_line, cursor, time_per_char=0.15))
        self.wait()
        self.play(UntypeWithCursor(wrong_code_line[0:5], cursor, time_per_char=0.1))
        self.wait()
        self.play(TypeWithCursor(correct_part, cursor, time_per_char=0.15))
        self.wait(0.5)
        self.wait(0.40)