Python Coding questions

n= 3648
m = 0
while n!=0:
m = m*10 + n%10
print(m)
n = n//10
print(n)
s1 = "madam"if(s1 == s1[::-1]):
print ("This is a palindrome")
else:
print ("not palindrome")
email = input("enter your email: " ).strip()username = email.split('@')[0]
domain_name = email.split('@')[1]
print("Username: " ,username, "\nDomain_name: ",domain_name)
email = input("enter your email: " ).strip()username = email[:email.index('@')]
domain_name = email[email.index('@')+1:]
print("Username: " ,username, "\nDomain_name: ",domain_name)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store