all AI news
Ibuprofeno.py💊| #85: Explica este código Python
April 19, 2024, 1 p.m. | Cristian Fernando
DEV Community dev.to
Explica este código Python
Dificultad: Fácil
mensaje = "Mi amigo Pedro juega fútbol. !Que bien juega Pedro¡"
print(mensaje.replace("Pedro", "Carlos", 1))
👉 A. Mi amigo Carlos juega fútbol. !Que bien juega Carlos¡
👉 B. Mi amigo Carlos juega fútbol. !Que bien juega Pedro¡
👉 C. Mi amigo Pedro juega fútbol. !Que bien juega Pedro¡
👉 D. Ninguno de los anteriores
Respuesta:
👉 B. Mi amigo Carlos juega fútbol. !Que bien juega Pedro¡
La función replace de Python permite remplazar una cadena …
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Business Data Analyst
@ Alstom | Johannesburg, GT, ZA