Search results
You need to actually create the variable "age". In your print statement you are referencing the variable age but the computer doesn't know what age is yet. Start with that and see where it gets you. Also, you should post the prompt as well in the future
This 7-bit code (a “bit” is a single “binary digit” with a value of 0 or 1) only covered 128 characters, consisting of the English alphabet, numbers, punctuation and some symbols. ASCII was later extended to 8 bits to include accented characters for other Western European languages.
This repository contains the solutions to the majority of CodeHS exercises for the Python programming language. However, it is an obligation that you complete all of the problems before using this database according to the CodeHS Terms of Use and Service - https://codehs.com/terms.
# Enter your code here meal = input("What meal do you want. Breakfast, lunch, or dinner? ") if meal == "breakfast": print("Have some pancakes") elif meal == "lunch": print("Have a sandwich") elif meal == "dinner": print("Have a steak")
function start(){ var name = readLine("What is your name?"); var dinner = readInt("What time do you want to meet for dinner?"); println("Hey " + name + ", I'll see you at dinner at " + dinner + ".");
Instead of just printing "Name" and "Time" you should print the actual questions that the assignment requires you to. Also, you should only have 1 println statement that uses both variables. Reply reply
Write better code with AI Security. Find and fix vulnerabilities Actions. Automate any workflow Codespaces. Instant dev environments Issues. Plan and track work Code Review. Manage code changes Discussions. Collaborate outside of code Code Search. Find more, search less ... 1.4.5 Mario Karel. 1.5.4 Pancakes with Start. 1.6.4 The Two Towers.