Can I use my Rstudio as python IDLE Shell?

Hi I'm a student who learn both python and R in college. Since there is reticulate package which makes it possible for me to carry out python code. My problem is that I want to see the result of my python code in Rstudio in the style of IDLE Shell(It shows only results without process) When I use my current Rstudio I always have to see the middle process, furthermore it makes me unable to do some codes. For example I can't print some lines that don't change their lines. I'll attatch some pictures.

q4
(When I used my Rstudio)

How can I do my work like I did in IDLE Shell?

'''python
x = input("Enter word : ")
print('{} -> '.format(x), end='')
for i in x :
print('a', end='')
'''
That is the code I used in here
ques2
And this is the result I want to see.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.