Ahmed Anwer

Results 3 comments of Ahmed Anwer

this is what i had ``` def main(): #get our data as an array from read_in() lines = sys.stdin.readlines() lines = json.loads(lines[0]) total_sum_inArray = 0 for item in lines: total_sum_inArray...

isn't the only way to read input with pyshell is to use sys.stdin? and stdin will remain open until pyshell does pyshell.end which ends the script. so unless the script...

so i made the following changes to the python and it worked!: ``` def main(): c = input() print (c) main() print("finished") ``` now, i added the shell.on and shell.send...