0
can string be multiplied by float?
string
6 Answers
+ 1
The * operator is used for multiplication when it operates in two integer or floating-point values. But when the * operator is used on one string value and one integer value, it becomes the string replication operator...
+ 1
The * operator can be used with only two numeric values (four multiplication) or one string value and one integer value (for string replication). Otherwise, Python will just display an error message.
0
No you can't.. Type error will occur
0
No. You can't but... why you want to try that? I mean, what would you like to do?
0
see i can multiply string with integer ....so i wasn't sure about float
0
You can typecast the string.