all AI news
Python Tips & Tricks Day 1
March 7, 2024, 3:19 a.m. | ahmed elboshi
DEV Community dev.to
🎩✨ Python Party Trick vs. Stone Age Code! ✨🎩
Hey Python pals! 👋 Tired of coding like a caveman? 🦕 Let's upgrade that Stone Age script with a slick Python party trick! 🧙♂️
The Long Way (aka Caveman Coding):
names = ['Alice', 'Bob', 'Charlie']
ages = [30, 25, 35]
for i in range(len(names)):
name = names[i]
age = ages[i]
print(f'{name} is {age} years old')
The Pythonic Party Trick (aka Zip & Star Power):
names = ['Alice', 'Bob', 'Charlie']
ages = …
age bob code coding hey python stone tips tips & tricks trick tricks upgrade
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US