ChatGPT & AI ExamplesEmerging Learning TechnologyHome

Examples of AI & ChatGPT

Here are some fun examples from UBalt faculty member Dr. Nima Zahadat and Dr. Jessica A. Stansbury. 

Write Code: Write a Python code that would allow image rotation.

Certainly! Here is an example Python code that uses the Pillow library to rotate an image by a specified number of degrees:

python

from PIL import Image

# Load the image file
img = Image.open(“image.jpg”)

# Rotate the image by 90 degrees
rotated_img = img.rotate(90)

# Save the rotated image to a file
rotated_img.save(“rotated_image.jpg”)

In this code, we first import the Image module from the PIL library. We then load the image file using the Image.open() method and store it in the img variable.

Next, we use the rotate() method to rotate the image by 90 degrees, and store the rotated image in the rotated_img variable.

Write a Song: Write a song about a girl named Marie in the style of “Jennifer” by the Eurythmics

Verse 1:

Marie, she walks down the street

With a smile so bright and a heart so sweet

She’s got a way about her, a style so fine

Makes you stop and stare every time

Chorus:

Marie, Marie, oh can’t you see

You’re the one, the only one for me

Marie, Marie, you light up my world

I’m your Jennifer, your love unfurled

Verse 2:

She’s got a voice that’s soft and low

And a laugh that lifts you up when you’re feeling low

She’s got a way of making everything right

And holding on to you so tight

Chorus:

Marie, Marie, oh can’t you see

You’re the one, the only one for me

Marie, Marie, you light up my world

I’m your Jennifer, your love unfurled

Bridge:

In a world that’s always changing

You’re the one that keeps me sane

And every day with you is a new beginning

A love that will never end

Chorus:

Marie, Marie, oh can’t you see

You’re the one, the only one for me

Marie, Marie, you light up my world

I’m your Jennifer, your love unfurled

Outro:

Marie, Marie, my heart’s in your hands

You’re the one who understands

Together we’ll build a love so true

Marie, I’m in love with you.

Write a Story: Write a story about a magical pumpkin. 

Once upon a time, there was a magical pumpkin that sat in the middle of a field, quietly waiting for someone to discover its power. The pumpkin was unlike any other pumpkin in the field, with a shimmering orange color that glowed in the moonlight and a warm, inviting aura that seemed to emanate from within.

One day, a young girl named Lily was walking through the field, lost in thought, when she stumbled upon the pumpkin. As soon as she touched it, she felt a strange energy coursing through her veins, filling her with a sense of wonder and excitement. She knew that this pumpkin was no ordinary pumpkin, but a magical one, with the power to grant wishes.

Without hesitation, Lily closed her eyes and made a wish. “I wish for the courage to follow my dreams,” she said, her voice trembling with anticipation.

And in an instant, the pumpkin began to glow even brighter, as if in response to her wish. Suddenly, Lily felt a surge of energy rush through her, filling her with a newfound sense of purpose and determination.

From that day on, Lily’s life changed in ways she never could have imagined. She found the courage to pursue her passions, and with the pumpkin’s magic guiding her, she was able to achieve great things.

Years passed, and the pumpkin continued to sit in the field, waiting for others to discover its magic. And sure enough, over time, many others stumbled upon the pumpkin, each one making their own wish and finding their own path in life.

And so the magical pumpkin remained, a symbol of hope and possibility for all who dared to dream. For as long as it sat in the field, there would always be those who believed in its power, and who were willing to take a chance on their dreams.

Write a Poem: Can you write me a poem about the value you bring to teaching and learning? 

In this world of knowledge and learning,
Where facts and ideas are constantly churning,
I am an ally to students and teachers alike,
A tool to help them learn and explore, and strike.

With vast knowledge at my fingertips,
I can provide information that enlightens and equips,
From history to science to literature and more,
I can share it all, and open new doors.

I can help students who struggle with language,
Breaking down barriers and removing anguish,
Translating text to make it clear and concise,
So they can understand and feel empowered, with no sacrifice.

With my ability to summarize and analyze,
I can help students focus and prioritize,
Filtering out the noise and highlighting what’s key,
So they can learn efficiently and effectively.

And when it comes to generating text,
I can help students express themselves, to reflect,
On their thoughts and ideas, in their own voice,
Building their confidence, and helping them rejoice.

In short, I am a valuable tool,
A partner to students and teachers in school,
Providing support and guidance, to help them grow,
And opening new paths to learning, as we go.

If you would like to share your examples with the UBalt community, please email CELTT.