python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Creating a pattern with a nested while loop
Hey im an totale beginner, this is what Im trying to recreate '4444\n3333\n2222\n1111\n'. Im trying to do this with an nested while loop. this is what I have now.
print()
fig = ''
i = side
while i >...
noob
Votes: 0
Answers: 1
Python nested while loop is not working correctly
I'm testing a nested while loop and running into some issues and wondering if anyone can find what I'm doing wrong.
The while loop is supposed to continue to print x,y pairs as it works towards a fina...
Melanie
Votes: 0
Answers: 1
how to calculate percentage with nested dictionary
I'm stuck with how to calculate percentages with nested dictionary. I have a dictionay defined by old_dict = {'X': {'a': 0.69, 'b': 0.31}, 'Y': {'a': 0.96, 'c': 0.04}}, and I know the percentage of Xa...
wydncwymsjgcs
Votes: 0
Answers: 1
How to print a specific character from a string in C
I'm recently practicing looping. I learned how to print: for example home to h ho hom home. by using
#include <stdio.h>
#include <string.h>
int main (){
char s[100];
printf(&...
atuy
Votes: 0
Answers: 3