• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu

Sesiones de PyR

Write a program to take x and y as input and output the string x, repeated y times. Sample Input hi 3 Sample Output hih
python
0 Votos
1 Respuesta
30th Dec 2022, 11:26 AM
X Gamerz
X Gamerz - avatar
is there any go to function in python.like if I want to run the program n times. it should ask wether I want to run the program again at the end,if the user says yes it should run again else the program should stop
python
0 Votos
3 Respuestas
13th Aug 2016, 3:10 PM
Purushotham Parthy
Purushotham Parthy - avatar
x = 42; int num = 0; while (num <3) Consele.writeline (x); num++; int x = 42; is just an int with an asigned value of 42 int num=0; is what initiate the count for the while loop while (num < 3); means 0<3 true, 1< 3 true, 2<3 true, the loop end at 2 bc 3 <3 is false consele.writeline (x) will display 42 while num < 3 num++ will execute and then add 1 to check if the while loop still true, but it stop at 2, bc 3 makes it false. so the consele.write will write 42 three times. x=42, remember the (x)
c#loops
0 Votos
2 Respuestas
5th Oct 2016, 7:33 PM
DoWhile2016
< Anterior12Siguiente >
En tendencia hoy
Hofstadter a sequence code coach is not running
0 Votes
the code for bigneer is not really what to do after coding begeneer in sololearn
0 Votes
Input errors (python)
1 Votes
Vote Code
1 Votes
What’s the actual difference between MB and GB in real-world usage?
1 Votes
Without degree job
0 Votes
Script file names
0 Votes
I wanna know is that what about dot net developers in future there is possible they gonna downfall in industry
0 Votes
Je cherche des gens qui parle français pour apprendre le langage c
0 Votes
How can I add gradient to the background
1 Votes