Michelle A

@MichelleA8 (3) • College of DuPage
Why Print function need to print anything in Python always?
posted to Ask by sumitdba10

@lclarkejhdf It's a good explanation, a bit wordy for a beginner, but a fine one. I'm a little hazy on Python since I haven't used it since April.

C++ OOP help
posted to Ask by MichelleA8

@mwilki7 Thank you. This works.

C++ OOP help
posted to Ask by MichelleA8

@mwilki7 I'm using Visual Studio and it doesn't run properly. It says "<error-type>" in "Circle" and "Color" in "Circle.cpp"

What line of code describes you best? 🤔
posted to Ask by katyadee

int death;
cin >> death
for (int counter = 0; counter < death; counter++)
{
beLazy();
watchYouTube();
}

Why Print function need to print anything in Python always?
posted to Ask by sumitdba10

If you really want to convert the string to and int, try (after "print(str1[3::])":
sum1 = "5"
print(sum1)
print(int(sum1) + 2)
~Remember to convert the data type of the variable because you cannot add a string to an int.