60 questions
# Parsing matchalpha_list = [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P]# After parsing alpha_list = [A, &, B, &, C, &, D, &&, E, &, F, &, G, &, H, &&, I, &...
sentence='There is a sun in the mouse hole.'i=len(sentence)-1while i >= 0 : if sentence[i]=='': print('-') else: print('%s'% sentence[i],end='') i-=1
public static String solution(String new_id) { for(;;) { for(int i = 0; i < answer.length(); i++) { If(answer.substring(i) == .) { // When the period is met } } else { break; } } } return a...
I make a code to enter the second decimal placeIf you enter a string, or if you enter a decimal point incorrectly, Print a print (Re-enter).You want to prompt again to enter the second decimal place.B...
For example, to convert the number 92 to binary:92 / 2 - quotient = 46 remainder = 046 / 2 - quotient = 23 remainder = 023 / 2 - quotient = 11 remainder = 111 / 2 - quotient = 5 remainder = 15 / 2 - q...
###Global variable declaration part##i,k=0,0##Main code part ##i=0while i<9: if i<5: k=0 while k<4-i: print(' ', end='') k+=1 k=0 while k<i*2+1: print('\u2665', end='')###Global var...
Hi, everyone.I'm asking you this question because I don't understand something because I'm a C++ beginner.#include <iostream>using namespace std;// *** Declaration of Global Variables ***// #1in...
Please help meI was looking for it for 4 hours and this is the code I came up withIt works, but I can't print out the last word added. TT: Please save meㅠ
Create function multiplies_of_k(n,k), in which n and k are two integers larger than 0. The function will return a list, which contains all the multiplies of k not larger than n in ascending order. k, ...
kors=[]def print_menu(): print ('\nGrade Processing Program') print ('1. Score input') print('2. Grades output') print ('3. Exit') print(-*20) menu = int(input('select action(1~3) :') return menudef i...
« | - 6 - |
© 2024 OneMinuteCode. All rights reserved.