An electronic device comprising: a first housing comprising a first surface and a second surface faced away from the first surface; a second housing comprising a third surface and a fourth surface faced away from the third surface; a folding part rotatably connecting a side surface of the first housing and a side surface of the second housing; a first display being disposed both on the first surface and the third surface; a second display disposed on the second surface of the first housing; at least one memory configured to store instructions; and at least one processor configured to: display at least a part of a first screen within a first sub region within a display region of the first display and display at least one of a second screen or a third screen within a second sub region beside the first sub region within the display region, receive a designated first input of rotating the first housing and the second housing around the folding part to contact portions of the first display, while displaying at least a part of the first screen within the first sub region and displaying at least one of the second screen or the third screen within the second sub region, display a fourth screen within the second display, in response to receiving a designated second input of activating the second display, after receiving the first input, receive a designated third input of rotating the first housing and the second housing around the folding part to separate the contacted portions of the first display, while displaying the fourth screen (D; B') within the second display, display a fifth screen (D'; B") at least partially related to the fourth screen (D; B') displayed on the second display, within the display region of the first display, in response to receiving the third input, and display, on the fifth screen (D'; B") an object for displaying the second sub region comprising the at least one of the second screen or the third screen that is displayed on the first display prior to receiving the first input. a first housing comprising a first surface and a second surface faced away from the first surface; a second housing comprising a third surface and a fourth surface faced away from the third surface; a folding part rotatably connecting a side surface of the first housing and a side surface of the second housing; a first display being disposed both on the first surface and the third surface; a second display disposed on the second surface of the first housing; at least one memory configured to store instructions; and at least one processor configured to: display at least a part of a first screen within a first sub region within a display region of the first display and display at least one of a second screen or a third screen within a second sub region beside the first sub region within the display region, receive a designated first input of rotating the first housing and the second housing around the folding part to contact portions of the first display, while displaying at least a part of the first screen within the first sub region and displaying at least one of the second screen or the third screen within the second sub region, display a fourth screen within the second display, in response to receiving a designated second input of activating the second display, after receiving the first input, receive a designated third input of rotating the first housing and the second housing around the folding part to separate the contacted portions of the first display, while displaying the fourth screen (D; B') within the second display, display a fifth screen (D'; B") at least partially related to the fourth screen (D; B') displayed on the second display, within the display region of the first display, in response to receiving the third input, and display, on the fifth screen (D'; B") an object for displaying the second sub region comprising the at least one of the second screen or the third screen that is displayed on the first display prior to receiving the first input. display at least a part of a first screen within a first sub region within a display region of the first display and display at least one of a second screen or a third screen within a second sub region beside the first sub region within the display region, receive a designated first input of rotating the first housing and the second housing around the folding part to contact portions of the first display, while displaying at least a part of the first screen within the first sub region and displaying at least one of the second screen or the third screen within the second sub region, display a fourth screen within the second display, in response to receiving a designated second input of activating the second display, after receiving the first input, receive a designated third input of rotating the first housing and the second housing around the folding part to separate the contacted portions of the first display, while displaying the fourth screen (D; B') within the second display, display a fifth screen (D'; B") at least partially related to the fourth screen (D; B') displayed on the second display, within the display region of the first display, in response to receiving the third input, and display, on the fifth screen (D'; B") an object for displaying the second sub region comprising the at least one of the second screen or the third screen that is displayed on the first display prior to receiving the first input.