Bash to python rewrite

I want to rewrite bash to python please help me

I think chatgpt could get you a long way. Just post what you have and ask it to rewrite in Python.

Repost any errors back into it, or explain to chatgpt what isn’t working as expected.

You won’t get much traction here posting a screenshot. Once you have a semi-working version, you might get additional help posting the code in a formatted block, and describe exactly what isn’t working as expected.

1 Like

You can use the </> to make a pre-formmatted text block that looks like this:

def function():
      print('Hello')
1 Like