from time import time
start = time()
#code start
email = input("Enter Your Email: ")
email=email.strip()
slicer_index=email.index("@")
username = email[:slicer_index]
domain_name = email[slicer_index+1:]
print("Your user name is ",username," and your domain is ",domain_name)
#code end
#clcoding.com
end = time()
execution_time = end - start
print("Execution Time (s) : ", execution_time)
Enter Your Email: avc@123 Your user name is avc and your domain is 123 Execution Time (s) : 7.258544206619263
0 Comments:
Post a Comment