int tag

57 questions


1 answers
86 views
0
Please tell me about * and sep in print (*[1,2,3], step=')

Hello :) School solves the descending output problem I solved it like thiss = sorted(list(input()))[::-1]Looking at the other answer,print(*sorted(input())[::-1],sep='')*and sep. It's my first time se...

2 years ago

2 answers
136 views
0
Output a function that is not executed Python separately

running = trueWhile running: Guess= str(Enter the code:) If guess=='b2310' Print ('Ko Byung-jae') If guess=='b2321' Print ('Precious Award') If guess=='mk' running = falseprint ('end')If you o...

2 years ago

1 answers
131 views
0
How to Round to Second decimal place

In C language, float type such as 37.7777779 37.777779 -> How do I round to the second decimal place, such as 37.78?


2 answers
167 views
0
I want to print letters and numbers alternately on Python.

1 #!/usr/bin/env python 2 3 import os 4 import subprocess 5 import sys 6 import shlex 7 import matplotlib.pyplot as plt 8 import re 9 10 def runCommand(command): 11 popenArgs = shlex.split(command) 1...

2 years ago

1 answers
73 views
0
The shared preference putFlot does not allow decimal point calculation by division of integers during the operation.

Both activities share computational results as shared preferences.If you press the correct view in the activity where the four-point multiple questions are printed, The values of the keys totaltry and...


1 answers
145 views
0
Why don't you use Double and Float to mark money?

I was told not to use double or float when marking money. Why is that?I think there must be a good reason, but I don't know why.

2 years ago

1 answers
96 views
0
What should I do when I want to find the location where the Python print is printed?

I have imported a lot of Python libraries and have been using theminit of any file during error correction.I accidentally copied print 'en' to py and pressed the wrong key to turn off the file window....

2 years ago

1 answers
119 views
0
How to raise the float

We need a float raise function that runs like the code below math.h has ceil() and floor() but not round().Is it in another C++ library or not at all?float round(float);round(0.1) = 0round(-0.1) = 0ro...


1 answers
86 views
0
I want to change the int to a string

Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...


1 answers
78 views
0
I want to print out the entire 'double' when I print out the cout

If I run the source code below,It says 3.14159265358979 instead of 3.14159Instead of rounding off the decimal point,What should I do to get the full price?int main(){ double d = 3.14159265358979; cout...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.