54.8k views
4 votes
This challenge could be a bit tricky, you will need to experiment to see what works. The best way to approach this challenge is to think logically and try out your ideas by using the "Check It!" button each time. If you persevere you will get to the solution! We are passing in two numbers as inputs. You should join them together into a single string.Tip: if you simply add these numbers together, they 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? # Input from the command line# converted to an integerimport sysnumber1 = int(sys.argv[1])number2 = int(sys.argv[2])

User Trans
by
4.4k points

1 Answer

3 votes

Answer:

# Input from the command line

# converted to an integer

import sys

number1 = int(sys.argv[1])

number2 = int(sys.argv[2])

# Your code goes here

print(str(number1)+str(number2))

Command ane arquments

Step-by-step explanation:

This challenge could be a bit tricky, you will need to experiment to see what works. The best way to approach this challenge is to think logically and try out your ideas by using the "Check It!" button each time. If you persevere you will get to the solution! We are passing in two numbers as inputs. You should join them together into a single string.Tip: if you simply add these numbers together, they 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? # Input from the command line# converted to an integerimport sysnumber1 = int(sys.argv[1])number2 = int(sys.argv[2])

# Input from the command line

# converted to an integer

import sys

number1 = int(sys.argv[1])

number2 = int(sys.argv[2])

# Your code goes here

print(str(number1)+str(number2))

Command ane arquments

User VitaliyG
by
3.9k points