Seo 1 month ago

Python create ID for company employies

Python code to create ID for company employies

#id = first 3 characters of company name + - + last 2 characters of name + birth year


#Enter your full name: karIM abdALWAHID

#Hello, Karim!

#Welcome at CleoTrends!



name = input("Enter your full name: ").title()

company_name= "CleoTrends"

birth_year = input("Enter your birthday year: ")

email = input("Enter your email: ")


#edit name

index_of_space = name.index(" ")

new_name = name[:index_of_space]

name_last_3_letters = name[-2:]

print(f'Hello, {new_name}')

print("Welcome at CleoTrends")


#edit company name

company_first_3_letters = company_name[:3]

#id = first 3 characters of company name + - + last 2 characters of name + birth year

id = company_first_3_letters + "-" + name_last_3_letters + birth_year


#edit email

index_of_at = email.index("@")

nem_email = email[:index_of_at] + "@cleotrends.com"


print(f"Your id is : {id}\n" f"Your email is : {nem_email}")

Boost Engagement: Pro Content Creation Tips

Boost Engagement: Pro Content Creation Tips

1731841874.png
Seo
7 months ago
Explore SEO in Different Contexts: Quick Guide

Explore SEO in Different Contexts: Quick Guide

1731841874.png
Seo
6 months ago
Common SEO Questions: 5 Must-Know Clarifications

Common SEO Questions: 5 Must-Know Clarifications

1731841874.png
Seo
6 months ago
Fast-Track SEO Careers with Certifications

Fast-Track SEO Careers with Certifications

1731841874.png
Seo
6 months ago
Hello World

Hello World

defaultuser.png
MyPulseZone
7 months ago