I've been using a code for awhile trying to get text and variables in the same line to print a sentence that depends mainly changing variables based on int(inuput) it doesn't work
@KrystanKlukos a = int(input()) b = a - 1 c = a + 1 d = "The next number for the number " e = "is " f = "The previous number for the number " print('{}{}{}{}'.format(d, a ,e , b ))
I've been using a code for awhile trying to get text and variables in the same line to print a sentence that depends mainly changing variables based on int(inuput) it doesn't work
@KrystanKlukos a = int(input())
b = a - 1
c = a + 1
d = "The next number for the number "
e = "is "
f = "The previous number for the number "
print('{}{}{}{}'.format(d, a ,e , b ))