| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // For more tutorials: https://blog.learngoprogramming.com | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Copyright © 2018 Inanc Gumus | 
					
						
							|  |  |  | // Learn Go Programming Course | 
					
						
							|  |  |  | // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package main | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | // EXERCISE: Variables To Variables | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | //  1. Change the value of `color` variable to "dark green" | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  2. Do not assign "dark green" to `color` directly | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							|  |  |  | //     Instead, use the `color` variable again | 
					
						
							|  |  |  | //     while assigning to `color` | 
					
						
							|  |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | //  3. Print it | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							|  |  |  | // RESTRICTIONS | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | //  WRONG ANSWER, DO NOT DO THIS: | 
					
						
							|  |  |  | //  `color = "dark green"` | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							|  |  |  | // HINT | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | //  + operator can concatenate string values | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  Example: | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:44:36 +03:00
										 |  |  | //  "h" + "e" + "y" returns "hey" | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							|  |  |  | // EXPECTED OUTPUT | 
					
						
							|  |  |  | //  dark green | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func main() { | 
					
						
							| 
									
										
										
										
											2018-10-22 22:47:16 +03:00
										 |  |  | 	// UNCOMMENT THE CODE BELOW: | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	// color := "green" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// ADD YOUR CODE BELOW | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// ? | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// UNCOMMENT THE CODE BELOW TO PRINT THE VARIABLE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// fmt.Println(color) | 
					
						
							|  |  |  | } |