Write the apology for my misconduct in ppt presentation

Asking for Preferences

Academic dishonesty and also add that the pendrive was unable to find

Asking for Preferences

Just write not letter

Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/apology-ppt

Writing File

~/apology-ppt/create_apology.py

from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR

# Color palette
DARK_NAVY   = RGBColor(0x1A, 0x23, 0x4E)   # deep navy background
WHITE       = RGBColor(0xFF, 0xFF, 0xFF)
LIGHT_GRAY  = RGBColor(0xF2, 0xF4, 0xF8)
ACCENT_RED  = RGBColor(0xC0, 0x39, 0x2B)
ACCENT_GOLD = RGBColor(0xE6, 0xAC, 0x3A)
TEXT_DARK   = RGBColor(0x1A, 0x23, 0x4E)
TEXT_MID    = RGBColor(0x44, 0x44, 0x55)

prs = Presentation()
prs.slide_width  = Inches(13.333)
prs.slide_height = Inches(7.5)

blank = prs.slide_layouts[6]

# ─────────────────────────────────────────────────────────────────────────────
# Helper functions
# ─────────────────────────────────────────────────────────────────────────────

def add_rect(slide, x, y, w, h, fill_rgb, alpha=None):
    shape = slide.shapes.add_shape(
        1,  # MSO_SHAPE_TYPE.RECTANGLE
        Inches(x), Inches(y), Inches(w), Inches(h)
    )
    shape.fill.solid()
    shape.fill.fore_color.rgb = fill_rgb
    shape.line.fill.background()
    return shape

def add_text(slide, text, x, y, w, h, font_size, bold=False, color=WHITE,
             align=PP_ALIGN.LEFT, italic=False, word_wrap=True):
    tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf = tb.text_frame
    tf.word_wrap = word_wrap
    tf.vertical_anchor = MSO_ANCHOR.MIDDLE
    tf.margin_left = Pt(4)
    tf.margin_right = Pt(4)
    tf.margin_top = 0
    tf.margin_bottom = 0
    p = tf.paragraphs[0]
    p.alignment = align
    run = p.add_run()
    run.text = text
    run.font.size = Pt(font_size)
    run.font.bold = bold
    run.font.italic = italic
    run.font.color.rgb = color
    run.font.name = "Calibri"
    return tb

def add_bullet_slide(prs, title, bullets, bg=LIGHT_GRAY):
    slide = prs.slides.add_slide(blank)
    # Background
    add_rect(slide, 0, 0, 13.333, 7.5, bg)
    # Top accent bar
    add_rect(slide, 0, 0, 13.333, 0.08, ACCENT_RED)
    # Left accent column
    add_rect(slide, 0, 0, 0.45, 7.5, DARK_NAVY)
    # Title bar
    add_rect(slide, 0.45, 0.15, 12.88, 1.1, DARK_NAVY)
    # Title text
    add_text(slide, title, 0.7, 0.15, 12.4, 1.1, 28, bold=True,
             color=WHITE, align=PP_ALIGN.LEFT)
    # Bullet items
    y_start = 1.55
    for bullet in bullets:
        # bullet dot
        add_rect(slide, 0.75, y_start + 0.16, 0.12, 0.12, ACCENT_RED)
        add_text(slide, bullet, 1.05, y_start, 11.8, 0.7, 18,
                 color=TEXT_DARK, align=PP_ALIGN.LEFT)
        y_start += 0.82
    return slide

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 1 – Title / Cover
# ─────────────────────────────────────────────────────────────────────────────
s1 = prs.slides.add_slide(blank)
add_rect(s1, 0, 0, 13.333, 7.5, DARK_NAVY)
add_rect(s1, 0, 0, 0.18, 7.5, ACCENT_RED)          # left strip
add_rect(s1, 0, 6.9, 13.333, 0.6, ACCENT_RED)       # bottom bar
add_rect(s1, 0.18, 3.1, 12.8, 0.05, ACCENT_GOLD)    # divider line

add_text(s1, "FORMAL APOLOGY", 0.5, 1.5, 12.3, 1.2, 48,
         bold=True, color=WHITE, align=PP_ALIGN.CENTER)
add_text(s1, "Regarding Academic Misconduct &\nMissing Pendrive Incident",
         0.5, 2.8, 12.3, 1.5, 22, italic=True,
         color=ACCENT_GOLD, align=PP_ALIGN.CENTER)
add_text(s1, "Presented by: [Your Name]     Date: ___________",
         0.5, 6.7, 12.3, 0.65, 13, color=WHITE, align=PP_ALIGN.CENTER)

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 2 – Acknowledgement of Misconduct
# ─────────────────────────────────────────────────────────────────────────────
bullets2 = [
    "I acknowledge that I engaged in academic dishonesty, which is a serious violation.",
    "I take full responsibility for my actions and do not offer any excuses.",
    "I understand this behavior goes against the institution's code of conduct.",
    "My conduct has let down my teachers, my institution, and myself.",
    "I deeply regret the impact this has had on the trust placed in me.",
]
add_bullet_slide(prs, "Acknowledgement of Misconduct", bullets2)

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 3 – The Pendrive Incident
# ─────────────────────────────────────────────────────────────────────────────
bullets3 = [
    "In addition, I failed to submit the required work stored on my pendrive.",
    "The pendrive containing the assignment/project could not be located in time.",
    "I did not have a backup copy, which worsened the situation significantly.",
    "I understand this reflects poor organization and lack of responsibility.",
    "I sincerely apologize for the inconvenience this caused to my teacher/committee.",
]
add_bullet_slide(prs, "The Pendrive Incident", bullets3)

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 4 – Sincere Apology
# ─────────────────────────────────────────────────────────────────────────────
s4 = prs.slides.add_slide(blank)
add_rect(s4, 0, 0, 13.333, 7.5, LIGHT_GRAY)
add_rect(s4, 0, 0, 13.333, 0.08, ACCENT_RED)
add_rect(s4, 0, 0, 0.45, 7.5, DARK_NAVY)
add_rect(s4, 0.45, 0.15, 12.88, 1.1, DARK_NAVY)
add_text(s4, "My Sincere Apology", 0.7, 0.15, 12.4, 1.1, 28,
         bold=True, color=WHITE)

# Quote box
add_rect(s4, 0.9, 1.55, 11.5, 3.8, DARK_NAVY)
add_rect(s4, 0.9, 1.55, 0.18, 3.8, ACCENT_RED)

apology_text = (
    "I sincerely and wholeheartedly apologize for my acts of academic dishonesty "
    "and for failing to properly manage and submit my work due to the missing pendrive.\n\n"
    "There is no justification for my actions. I fully understand the seriousness of "
    "academic integrity and the expectations placed upon every student.\n\n"
    "I am truly sorry for any disappointment, disruption, or harm my conduct may have caused."
)
tb = s4.shapes.add_textbox(Inches(1.3), Inches(1.75), Inches(10.8), Inches(3.3))
tf = tb.text_frame
tf.word_wrap = True
tf.vertical_anchor = MSO_ANCHOR.MIDDLE
tf.margin_left = Pt(6)
tf.margin_right = Pt(6)
p = tf.paragraphs[0]
p.alignment = PP_ALIGN.LEFT
run = p.add_run()
run.text = apology_text
run.font.size = Pt(16)
run.font.italic = True
run.font.color.rgb = WHITE
run.font.name = "Calibri"

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 5 – Corrective Actions & Commitments
# ─────────────────────────────────────────────────────────────────────────────
bullets5 = [
    "I will always maintain academic integrity and never resort to dishonest practices.",
    "I will keep regular digital backups of all academic work to prevent loss.",
    "I will submit all future assignments on time and through proper channels.",
    "I am willing to redo or resubmit any work as required by the institution.",
    "I will actively participate in academic integrity awareness programs if available.",
]
add_bullet_slide(prs, "Corrective Actions & Commitments", bullets5)

# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 6 – Closing / Thank You
# ─────────────────────────────────────────────────────────────────────────────
s6 = prs.slides.add_slide(blank)
add_rect(s6, 0, 0, 13.333, 7.5, DARK_NAVY)
add_rect(s6, 0, 0, 0.18, 7.5, ACCENT_RED)
add_rect(s6, 0, 6.9, 13.333, 0.6, ACCENT_RED)
add_rect(s6, 0.18, 3.7, 12.8, 0.05, ACCENT_GOLD)

add_text(s6, "Thank You for Your Understanding", 0.5, 1.5,
         12.3, 1.4, 34, bold=True, color=WHITE, align=PP_ALIGN.CENTER)
add_text(s6, "I humbly request your forgiveness and a chance to prove\nthat I am capable of better conduct going forward.",
         0.5, 3.0, 12.3, 1.5, 20, italic=True,
         color=ACCENT_GOLD, align=PP_ALIGN.CENTER)
add_text(s6, "Name: ___________________________     Signature: ___________________________",
         0.5, 5.2, 12.3, 0.7, 14, color=WHITE, align=PP_ALIGN.CENTER)
add_text(s6, "Date: ___________________________     Class/Dept: ___________________________",
         0.5, 5.95, 12.3, 0.7, 14, color=WHITE, align=PP_ALIGN.CENTER)

# ─────────────────────────────────────────────────────────────────────────────
# Save
# ─────────────────────────────────────────────────────────────────────────────
out = "/tmp/workspace/apology-ppt/Apology_Presentation.pptx"
prs.save(out)
print(f"Saved: {out}")
Running Command

python /tmp/workspace/apology-ppt/create_apology.py

Your apology presentation is ready. Here is a summary of what's inside:
SlideContent
1Cover - "Formal Apology" title with your name & date placeholders
2Acknowledgement of Misconduct - 5 bullet points owning the wrongdoing
3The Pendrive Incident - explains the missing pendrive and its consequences
4Sincere Apology - a full written apology paragraph in a styled quote box
5Corrective Actions & Commitments - 5 promises for better behavior
6Closing slide - thank you message with name/signature/date fields to fill in
The design uses a professional dark navy and red color scheme. Just fill in your name, date, class/department on Slides 1 and 6 before presenting.

Apology Presentation

Presentation · PPTX

I need to just put a whatsapp message

Here's a short, sincere WhatsApp message you can send:

Good [morning/evening] Sir/Ma'am,
I am writing to sincerely apologize for my act of academic dishonesty. I take full responsibility for my actions and deeply regret my behavior. I also apologize for not being able to submit my work on time as my pendrive was misplaced and I could not locate it.
I assure you this will never happen again. I am ready to face any consequence and will ensure I maintain proper backups and honest conduct going forward.
I am truly sorry for the inconvenience and disappointment caused.
Thank you for your understanding.
Regards, [Your Name]

You can shorten it further if needed - just let me know!

Good evening sir Regards Mallikarjun Gouda

Here's your message, ready to copy and send:

Good evening Sir,
I am sincerely sorry for my act of academic dishonesty. I take full responsibility for my actions and I deeply regret my behavior. I also apologize for not being able to submit my work on time as my pendrive was misplaced and I could not find it.
I assure you this will never happen again. I am willing to accept any consequence and I will make sure to maintain proper backups and honest conduct in the future.
Please forgive me Sir. I am truly sorry for the inconvenience and disappointment caused.
Regards, Mallikarjun Gouda

Just copy and send it!
This is a shared conversation. Sign in to Orris to start your own chat.