Thanks for your repo. Here is something you could add. The Fortran code
write (*,"(a)") "'" // trim(" ab ") // "'"
write (*,"(a)") "'" // trim(adjustl(" ab ")) // "'"
end
is equivalent to Python code
print("'" + " ab ".rstrip() + "'")
print("'" + " ab ".strip() + "'")
so in short, trim(s) in Fortran is equal to s.rstrip() in Python, and trim(adjustl(s)) equals s.strip()
Thanks for your repo. Here is something you could add. The Fortran code
is equivalent to Python code
so in short,
trim(s)in Fortran is equal tos.rstrip()in Python, andtrim(adjustl(s))equalss.strip()