human
次の形式で現在の日付の文字列を返す関数をJavaScriptで作れますか？
"February 6, 2023"
gpt
はい、以下が現在の日付を希望の形式で返すJavaScriptの関数の例です。
```
const currentDate = () => {
  const now = new Date();
  const month = now.toLocaleString('default', {month: 'long'});
  const day = now.getDate();
  const year = now.getFullYear();
  return `${month} ${day}, ${year}`;
};
```
human
Pythonで書き直せますか？
gpt
以下になります：
from datetime import datetime

def current_date_string():
# get current data
    now = datetime.now()
# Change time formats
    month = now.strftime("%B")
    day = now.day
    year = now.year
# return string with the correct format
    return f"{month} {day}, {year}"
# testing code
current_date_string()