I need help with turning Python Code to either A FlowChart or pseudocode. I think I have done the pseudocode but i'm not sure if it right.
Here is the Python Program:
userinput= input("Whats your File Called? \n" )
concat=userinput+".txt"
def main():
f=open(concat, "r")
if f.mode == 'r':
contents = f.read()
print(contents)
if __name__== "__main__":
main()
Here is the Attempted Pseudocode:
userinput= input("Whats your File Called? \n" )
concat=userinput+".txt"
FUNCTION main():
f=open(concat, "r")
IF f.mode = 'r':
contents <- f.read()
OUTPUT contents
ENDIF
ENDFUNCTION
IF __name__== "__main__":
main()
ENDIF