Random number function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Random number function

I am trying to make a function where the user enters the country code and it displays few numbers to pick from... I am able to get the numbers but the code goes after the number... Could someone tell me how I can resolve this issue? The code is below. Thanks a ton! :) https://code.sololearn.com/cBpzFnBBT5x4/?ref=app https://code.sololearn.com/cBpzFnBBT5x4/?ref=app https://code.sololearn.com/cBpzFnBBT5x4/?ref=app

24th Apr 2020, 12:51 AM
Aril Sirohi
Aril Sirohi - avatar
1 Answer
+ 2
A few modifications: Interchanged line 10 and 11. Added "\n" and end="" to print(f".......) https://code.sololearn.com/csP7nhYqXPaM/?ref=app
24th Apr 2020, 2:31 AM
Tricker