Kavun, embeddable scripting language for Go

Kavun은 Go 언어용으로 설계된 경량 고성능 임베디드 스크립팅 언어입니다. 표현식 지향 프로그래밍과 일관된 언어 설계 원칙을 기반으로 하며, f-strings, 람다 함수, 데이터 타입 멤버 함수, 체이닝 같은 기능을 지원해 복잡한 변환 코드를 간결한 표현식으로 작성할 수 있습니다. Go로 구현된 바이트코드 VM 위에서 동작해 Go 서비스 내 임베딩과 샌드박싱이 용이합니다. CLI 설치 및 임베딩 가이드, 언어 및 타입 레퍼런스, 표준 라이브러리 문서도 제공됩니다.

https://github.com/jokruger/kavun

#golang #scriptinglanguage #embeddedvm #lambda #fstrings

F-Strings vs String Interpolation: The ULTIMATE Battle!

Python's f-strings vs PHP's string interpolation - which language wins the formatting war? INSANE!

#php #python #phpvspython #fstrings #stringinterpolation #formatting #stringformatting #viralcoding #python3.6 #modernpython #syntaxcomparison #codingtricks

https://www.youtube.com/watch?v=d2gjUs2cuN8

F-Strings vs String Interpolation: The ULTIMATE Battle! #codingtricks

YouTube

Template Literals vs F-Strings: String Interpolation Showdown

JavaScript template literals vs Python f-strings. Which language's string formatting is more powerful? You won't believe this!

#javascript #python #javascriptvspython #templateliterals #fstrings #stringinterpolation #programmingcomparison #codecomparison #javascripttricks #pythontricks #syntaxcomparison #viralcoding

https://www.youtube.com/watch?v=OV6-CfV721g

Template Literals vs F-Strings: String Interpolation Showdown #templateliterals

YouTube
Python f-string cheat sheet

Get quick help with Python's f-string syntax

Python f-string cheat sheet

Get quick help with Python's f-string syntax

fstrings.wtf - Python F-String Quiz

Test your knowledge of Python's f-string formatting with this interactive quiz. How well do you know Python's string formatting quirks?

fstrings.wtf
fstrings.wtf - Python F-String Quiz

Test your knowledge of Python's f-string formatting with this interactive quiz. How well do you know Python's string formatting quirks?

fstrings.wtf

Today I quickly debugged a hacky automation script I have using a great tip from @mariatta, using = on f-strings 😹

print(f'{len(divs)=} {len(cat_puzzle_lists)=} {col_len=}')

output:
len(divs)=3 len(cat_puzzle_lists)=4 col_len=1.3333333333333333

Learn more at: https://youtu.be/SNA2O0NQl_Q

#python #fstrings #debug

F-strings! [PyOhio 2023]

YouTube

Today I learned that in Python you can print a floating point number with thousands separator and no floating point part with the f-string formatter `:integer_digits,.0f`.

For instance:

```python
print(f"{1234567891*1.1:15,.0f}")
```

prints ` 1,358,024,680`, while

```python
print(f"{1234567891*1.1:15,f}")
```

prints `1,358,024,680.100000`.

It also properly rounds up or down numbers, which is great.

#TIL #TodayILearned #Python #FStrings #FloatingPoint #ThousandsSeparator

f-string in f-string is valid too 👀

...ef ef ef in ef-string

#fstrings #pythontoot