int tag

57 questions


2 answers
95 views
0
Self-Error when entering a string for a question that requires a decimal point

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...

2 years ago

2 answers
119 views
0
How to eliminate spacing due to Python print ','

a = input()print(a[:2],shprint(a[3:]Minutes)It comes out like this because I used and but how do I print out without spacing?(I want to minimize the running time!))

2 years ago

1 answers
93 views
0
TypeError: 'int' object is not callable error appears

defk(T, n): #rate constants if n == 1: return Kb * T / h * np.exp(-gibbs / (R * T)) elif n == 2: return Kb * T / h * np.exp(-gibbs1 / (R * T))def ktot(T, n): # Total rate constant _t = 0.0 for m in ...


1 answers
133 views
0
Python Integer Byte Code Conversion Question

import structtest_struct = struct.pack('B', 34)print(test_tmp : , test_struct)test_bytes = bytes([34])print(test convert bytes : , test_bytes)>>>test_tmp : b''test convert bytes : b''When the...

2 years ago

1 answers
116 views
0
[python] Assigning a dynamic left space in a print statement, eliminating \t when writing on the next line

Hello.When I printed out Python print, two things were inconvenient for a long time, but it wasn't fatal, but there were parts that kept bothering me, so I'm asking you a question!Question 1. Dynamica...

2 years ago

1 answers
148 views
0
Why can't I convert the automatic version of C language when it's really simple?

#include <stdio.h>int main(void){ int c; float d = 5.6, e = 8.4; c = d + e; printf(c = d + e = %.2f \n, (float)c); return 0;}Isn't float d=5.6 and float=8.4 automatically converted to int, so it...

2 years ago

1 answers
103 views
0
I have a question about the Python string output

I wrote the code through the process from 2.1 to 2.3word = Love it or leave it.start = word[11:]end = word[11:16]May I know how to use the print of the last 2.4 question that should be in the last lin...

2 years ago
« - 6 -

© 2024 OneMinuteCode. All rights reserved.