All generations.

generate functionFri, 10 Feb 2023

mataqanaa Afsomali

def mat(A): afsomali = ["A", "B", "T", "J", "X", "K", "L", "M", "H", "D", "C", "U", "E", "I", "O", "W", "G", "F", "Q", "N", "Y", "P", "S", "R", "Z", "V"] l = list(A) l = [afsomali.index(x) for x in l] return l mat("GIT")

Python
View
generate functionFri, 10 Feb 2023

create EVC-Plus

import random def create_evc_plus(name): # randomly create a number between 1 and 1000 # and assign that number to a variable called evc_plus_number evc_plus_number = random.randint(1,1000) # return the concatenated string "EVCPlus" and the number return "EVCPlus" + str(evc_plus_number) create_evc_plus("EVC")

Python
View

Questions about programming?Chat with your personal AI assistant