logoalt Hacker News

analog31yesterday at 7:52 PM2 repliesview on HN

Indeed, and I get that one can ignore those features (I do), but finding them in existing code or having the AI coding agent use them diminishes the "easy for beginners" aspect.


Replies

ForceBruyesterday at 9:35 PM

How is, say, `age = 5; print(f"Age: {age} years old")` not easy for beginners? IMO it's as easy as it gets: you want the value of `age` printed {HERE}, so you just put it where you want it, surrounded by curly brackets.

show 1 reply
orfyesterday at 8:18 PM

Are f-strings not easy for beginners? What would you prefer instead?

show 1 reply