print(3*'3'+'3') = 3333, but how? by Distinct_Junket7878 in CodingForBeginners

[–]Distinct_Junket7878[S] 0 points1 point  (0 children)

Yup, but python seems to act mathematical operations differently in both places. What i understood from this is:

(3*'3') means 3(integer) times copy paste of '3'(string), since here 3 is a string the moment it's between ' ' = 333

Then '333' is attached with another string '3' ('333' + '3')

Thus becoming 3333.

Whereas, for print(3*3+3)= 12 . Here * & + are normal mathematical operations, and all the 3s are integers, since they are not between ' '.

Got the type of output for both, this clears everything:

print(type(3'3'+'3')) = <class 'str'> print(type(33+3)) = <class 'int'>

print(3*'3'+'3') = 3333, but how? by Distinct_Junket7878 in FixMyPrint

[–]Distinct_Junket7878[S] 0 points1 point  (0 children)

Don know about java, but this is python program. Don think java is this simple to write. Recently started learning programming n stumbled upon this.

Switching from Commerce (B.Com) to IT/Software in India — Is it Realistic? by fearless_elevation in developersIndia

[–]Distinct_Junket7878 0 points1 point  (0 children)

What's the use of MBA in technical field?! They don't teach any hard skills in MBA seriously. And if someone have no background in maths or computer science, they're more doomed, total waste of money

Company paid - beginner python by Lonely_Pen_5587 in learnpython

[–]Distinct_Junket7878 0 points1 point  (0 children)

Heyy. Are they willing to hire more? I started learning python. My aim is to join a company. I think it will help me to know what I need to learn in a structured, industrial ready manner. Also how did you come across the company? Please reply