Skip to content

Instantly share code, notes, and snippets.

@shivamMg
Created August 28, 2025 03:26
Show Gist options
  • Save shivamMg/4bee007eaf194558ed249508ff32afb9 to your computer and use it in GitHub Desktop.
Save shivamMg/4bee007eaf194558ed249508ff32afb9 to your computer and use it in GitHub Desktop.
python author variables
class _mail:
def __matmul__(self, other):
return "mail@" + other
def __str__(self):
return "mail"
mail = _mail()
class shivammamgain:
com = "shivammamgain.com"
class _first_name:
def __add__(self, other):
return "Shivam " + other
def __str__(self):
return "Shivam"
Shivam = _first_name()
Mamgain = "Mamgain"
from author import *
author_email = [email protected]
author_website = shivammamgain.com
author_name = Shivam
author_fullname = Shivam + Mamgain
print(author_email) # [email protected]
print(author_website) # shivammamgain.com
print(author_name) # Shivam
print(author_fullname) # Shivam Mamgain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment