This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://youtu.be/AF1VN4cLesY | |
=BUSCARV(B4;IMPORTRANGE("https://docs.google.com/spreadsheets/d/1ZnebV6lkk/edit?usp=sharing";"Hoja1!C:I");7;FALSO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lowercase = 'abcdefghijklmnopqrstuvwxyz' | |
digits = '0123456789' | |
#List Comprehensions form | |
answer = [i+j+k+l for i in lowercase for j in lowercase for k in digits for l in digits] | |
#traditional form | |
answer2=[] | |
for a in lowercase: | |
for b in lowercase: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def times_tables(): | |
lst = [] | |
for i in range(10): | |
for j in range (10): | |
lst.append(i*j) | |
return lst | |
lst = [ i*j for i in range(10) for j in range (10)] | |
times_tables() ==lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
people = ['Dr. Christopher Brooks', 'Dr. Kevyn Collins-Thompson', 'Dr. VG Vinod Vydiswaran', 'Dr. Daniel Romero'] | |
def split_title_and_name(person): | |
return person.split()[0] + ' ' + person.split()[-1] | |
for person in people: | |
#option 1 | |
print(split_title_and_name(person) == (lambda x: x.split(' ')[0] + ' ' + x.split(' ')[-1])(person)) |