title: How to store result in variable without modifying constant values and data types
body: <p>I'm new to Python and I need solve these two tasks below.</p>
  <p>Part 1:</p>
  <pre><code>+A, B, C = -5, '8', 7.6  # DO NOT MODIFY CONSTANT VALUES
  +TOTAL = int()           # DO NOT MODIFY DATA TYPE
  +
  +''' PSEUDO CODE
  +SUM given values of A, B and C as integers, CASTING where necessary.
  +STORE result in variable 'TOTAL'.
  +
  +Expected output:
  +    -5 + 8 + 7.6 = 10
  +'''
  +
  +# TODO: implement your solution for pseudo code!
  +
  +print(&quot;{} + {} + {} = {}&quot;.format(A, B, C, TOTAL))  # DO NOT MODIFY
  </code></pre>
  <p>Here is my solution but I am not quite sure if its the right way to go even though the expected output is correct:</p>
  <pre><code>import math
  A, B, C = -5, '8', 7.6  # DO NOT MODIFY CONSTANT VALUES
  B = int(B)
  SUM = A + B + C
  math.floor(SUM)
  TOTAL = int(SUM)           # DO NOT MODIFY DATA TYPE
  print(&quot;{} + {} + {} = {}&quot;.format(A, B, C, TOTAL))  # DO NOT MODIFY
  </code></pre>
  <p>Part 2:</p>
  <pre><code>+TEXT = &quot;I wrote my very first program at age 10!&quot;   # DO NOT MODIFY CONSTANT VALUES
  +OUTPUT = str()                                      # DO NOT MODIFY DATA TYPE
  +
  +''' PSEUDO CODE
  +DETERMINE whether 'TEXT' contains the value of 'TOTAL' as substring.
  +IF True STORE &quot;true that&quot; in variable 'OUTPUT' ELSE STORE &quot;nope&quot;.
  +
  +Expected output:
  +    Value of 'TOTAL' exists in string: true that
  +'''
  +
  +# TODO: implement your solution for pseudo code!
  +
  +print(&quot;Value of 'TOTAL' exists in string: {}&quot;.format(OUTPUT))  # DO NOT MODIFY
  </code></pre>
  <p>My (probably incorrect) solution:</p>
  <pre><code>TEXT = &quot;I wrote my very first program at age 10!&quot;   # DO NOT MODIFY CONSTANT VALUES
  OUTPUT = str(TEXT[37:39])                           # DO NOT MODIFY DATA TYPE
  TEXT = int(OUTPUT)
  
  # result = TEXT.find(&quot;10&quot;)
  # print(result)
  
  if TEXT == TOTAL:
      OUTPUT = &quot;true that&quot;
  else:
      OUTPUT = &quot;nope&quot;
  print(&quot;Value of 'TOTAL' exists in string: {}&quot;.format(OUTPUT))  # DO NOT MODIFY
  </code></pre>
  <p>As you can see I can't seem to find any other solutions without modifying data types. This assignment is all about simple arithmetics, using only basic operators. No external libraries are needed, nor allowed to be used, for the implementation.</p>
  <p>The implementation of the code assignment's second part needs to conform to the pseudo code presented, where strings are supposed to be compared (not numeric values). Also, TEXT needs to be considered a constant (no change to value, nor its data type).</p>