Numeric and String Expro

Code Challenge – IT
June 30, 2019
Codio – Numeric and String Expre x
June 30, 2019

Tome – >> Students
C Codio – Numeric and String Expro
https://codio.com/dlopez7/numeric-and-string-expressions:5c1711cbab68f03457dca422:KxGhUkEjGJW6/tree/challenges%2Fstrnum.py
Codio
Project
File
Edit
Find
View
Tools
Education
Help
Node version
is Project Index (static)
Configure….
um.py
3. 4. Strings c…
# Input from the command line
converted to an integer
Collapse
String expressions
import sys
number1 = int (sys . argv[1] )
number2 = int(sys . argv[2] )
B. 4. Strings containing numbers
N= number1
N2= number2
should join them together into a single string
str ( "N’ N2")
print (N+ N2
Tip: if you simply add these numbers together, they
# Your
code
will be added together as numbers, not a string. You
have already seen how to make sure they are added
together as strings. can you remember?
Check It!
Program Output
Program Failed for Input: 123 456
Expected Output: 123456
Your Program Output: 579
Your output was incorrect. Tr

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp