Pregunta | Respuesta |
Image:
Cardf1 (binary/octet-stream)
|
Image:
Cardb2 (binary/octet-stream)
|
Image:
Cardf2 (binary/octet-stream)
|
|
Image:
Cf3 (binary/octet-stream)
|
Image:
Cb3 (binary/octet-stream)
|
Write a function to check the age of a user. If they are over 13 print: “Welcome to the site!” other wise print ‘Sorry you are too young to Enter this site.’ | age_check = lambda x: 'Welcome to the site! if age > 13 else 'Sorry you are too young to enter this site. |
Add a new column to the df 'customers' that takes the area code from the column 'phone. the format of 'phone is '413-345-0795 | customers['area_code'] = customers.phone_number.apply(lambda x: x.split('-')[0]) |
¿Quieres crear tus propias Fichas gratiscon GoConqr? Más información.