How do I change letters in user made outputs? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How do I change letters in user made outputs?

lol = gets a=s puts lol if I type a it won't show as an s, any help?

30th Sep 2017, 10:48 AM
Jaymes Guiher
Jaymes Guiher - avatar
1 Antwort
0
Hi, If you want to print 'a' first you have to assign a value to 'a'. In your case 's' is not defined and if you consider 's' as a string Then assign like this lol = gets a = 's' puts lol puts a
22nd Dec 2017, 5:26 AM
Tanay Sharma