[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How would I code a new line that says "i like your shoes"

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 6

File: launchcode.jpg (6KB, 200x200px) Image search: [Google]
launchcode.jpg
6KB, 200x200px
How would I code a new line that says "i like your shoes" after saying Hello?
:code:
n = input("What is your name?")
if n == "Amar":
print("Hello " + n + ' :)')
:stopcode:
>>
n = input("What is your name?")
if n == "Amar":
print("Hello " + n + ' :)')


woops im retarded
>>
File: 1422230815574.jpg (75KB, 784x680px) Image search: [Google]
1422230815574.jpg
75KB, 784x680px
>>58360213
>input instead of raw_input
>not using
code tags

>using python
>>
File: hackerman.jpg (79KB, 960x640px) Image search: [Google]
hackerman.jpg
79KB, 960x640px
>>58360255
i have to use python for Launchcode classes
also raw_input is python 3 instead of python 2
>>
File: 1483387281883.png (482KB, 858x718px) Image search: [Google]
1483387281883.png
482KB, 858x718px
>>58360294
>using print("x") in python 2 instead of print "x"
>using python 2
>>
You wouldn't because you are obviously too retarded to accomplish such a task.
>>
File: 1483658824412.png (42KB, 500x322px) Image search: [Google]
1483658824412.png
42KB, 500x322px
>>58360425
clearly google searching tells me to do this:
\n "blah blah blah"

but the interpreter just spits out:
SyntaxError: unexpected character after line continuation character
>>
>>58360213
n = input("What is your name?")
if n == 'Amar':
print("go back to the piece of shit country you live in, Amar. Europe for Europeans!")
>>
>>58360571

n = input("What is your name?")
if n == "Amar":
print("Hello " + n + ' :)\nI Like your shoes!')
>>
File: asdf.jpg (5KB, 240x162px) Image search: [Google]
asdf.jpg
5KB, 240x162px
>>58360682
thats the code i eventually came to
thanks for being smart and not racist!
>>
>>58360294
>also raw_input is python 3 instead of python 2
It's the opposite.
>>
>>58360972
>muh racism
fuck off, sand nigger.
Thread posts: 12
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.