User since Oct 28, 2022
import stringdef caesar(text, shift, alphabets):def shift_alphabet(alphabet):return alphabet[shift:] + alphabet[:shift]shifted_alphabets = tuple(map(shift_alphabet, alphabets))final_alphabet = "".join(alphabets)final_shifted_alphabet = "".join(shifted_alphabets)table = str.maketrans(final_alphabet, final_shifted_alphabet)return text.translate(table)plain_text = "Hey Skrome, welcome to CodeCatch"print(caesar(plain_text, 8, [string.ascii_lowercase, string.ascii_uppercase, string.punctuation]))
color2 = (60, 74, 172)color1 = (19, 28, 87)percent = 1.0for i in range(101):resultRed = round(color1 + percent * (color2 - color1))resultGreen = round(color1 + percent * (color2 - color1))resultBlue = round(color1 + percent * (color2 - color1))print((resultRed, resultGreen, resultBlue))percent -= 0.01
No Posts Found
It looks like Skrome hasn't uploaded a post yet
Please Log In
You must be authenticated to view a user's likes
Multi-Factor Authentication (MFA) is an authentication method that requires you to provide two or more verification factors to gain access to your account. In addition to username and password, MFA requires you to verify your email on every login, which decreases the likelihood of someone stealing your account.
Deleting your account is permanent. All data associated with your account will be lost.