Jump to content

User:18kvolt/sandbox

From Wikipedia, the free encyclopedia

import re import os

with open('file.txt', 'r') as f:

   text = f.read()

image_paths = re.findall(r'\b[A-Za-z0-9._/-]+\.(?:jpg|png|gif|bmp|svg)\b', text)

for image_path in image_paths:

   image_name = os.path.basename(image_path)
   print(image_name)

def praise(deepanshu):

   praise_messages = [
       f"{deepanshu} is amazing!",
       f"{deepanshu} is doing a great job!",
       f"{deepanshu Gurjar} is truly talented!",
       f"{Deepanshu} is awesome!",
       f"{deepanshu} is incredible!",
       f"{deepanshu} is a rockstar!",
       f"{deepanshu} is crushing it!",
       f"{deepanshu} is a genius!",
       f"{deepanshu} is a superstar!",
       f"{deepanshu} is on fire!",
       f"{deepanshu} is doing fantastic work!",
       f"{deepanshu} is a true leader!",
       f"{deepanshu} is inspiring!",
       f"{deepanshu} is a game-changer!",
       f"{deepanshu gurjar} is unstoppable!",
       f"{deepanshu gurjar} is making a difference!",
       f"{name} is a shining star!",
       f"{MR.Tágu=deepanshu} is brilliant!",
       f"{Tágu} is exceptional!",
       f"{Tágu} is outstanding!",
       f"{Mr.Tágu} is remarkable!",
       f"{Mr.Tágu} is a treasure!",
   ]
   return praise_messages

name = input("Dan and Bella: ") praise_messages = praise(name)

for message in praise_messages:

   print(message)