dwrfwrw
Badges: 8
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#1
Report Thread starter 1 month ago
#1
https://gyazo.com/8af37bc61f19ea328828e2b7e44ded7b
I'm not really sure how to deal with the empty string,out.
0
reply
hanni_pk
Badges: 7
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#2
Report 1 month ago
#2
Name:  Screenshot 2021-12-04 132349.jpg
Views: 10
Size:  8.0 KB
For ease, I screenshotted it above.
If you are wondering what happens to out, it gets reassigned to a new value.
That new value is the result of combining r and its old value.

For instance, let a='llo'
If we then let a = 'he'+a
Now a= 'hello'
I hope that helps.
0
reply
dwrfwrw
Badges: 8
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#3
Report Thread starter 1 month ago
#3
(Original post by hanni_pk)
Name:  Screenshot 2021-12-04 132349.jpg
Views: 10
Size:  8.0 KB
For ease, I screenshotted it above.
If you are wondering what happens to out, it gets reassigned to a new value.
That new value is the result of combining r and its old value.

For instance, let a='llo'
If we then let a = 'he'+a
Now a= 'hello'
I hope that helps.
I understood that you did string concatenation but I'm not sure exactly why a string function is used to find if a number is prime/odd.
Thanks for helping me.
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

When did you submit your Ucas application if you applied to go to university this year?

September 2021 (30)
7.09%
October 2021 (194)
45.86%
November 2021 (44)
10.4%
December 2021 (56)
13.24%
January 2021 (46)
10.87%
I still haven't submitted it yet! (39)
9.22%
Something else (14)
3.31%

Watched Threads

View All