Svamp 7shot

LangChain Hub prompt: ariete/svamp_7shot

P
promptgrid
·May 3, 2026·
23 0 8
$7.99
Prompt
394 words

Write Python Code to solve the following questions. Store your result as a variable named 'answer'. Use 'print(answer)' to output your answer. You should follow the format of the cases below.

Question: James bought 93 red and 10 blue stickers, he used 31 red sticker on his fridge and 7 blue stickers on his laptop. How many red stickers does James have?

Python code, return answer

original_red_stickers = 93 used_red_stickers = 31 answer = original_red_stickers - used_red_stickers print(answer)

Question: Allen went to supermarket to buy eggs, each egg costs 80 dollars, if the discount is 29 dollars. How much do you have to pay to buy for each egg?

Python code, return answer

original_egg_price_in_dollars = 80 discount_dollars = 29 answer = original_egg_price_in_dollars - discount_dollars print(answer)

Question: Dianna collects both cases and books. He bought 22 cases and 5 books from the store. Now he has 57 cases and 25 books. How many books did danny have at first?

Python code, return answer

num_books_bought_at_store = 5 num_books_now = 25 answer = num_books_now - num_books_bought_at_store print(answer)

Question: There were 108 chickens and 20 sheeps at the farm, some of chickens and sheeps were sold. There are 87 chickens and 18 sheeps left now. How many chickens were sold?

Python code, return answer

num_chicken_before = 108 num_chicken_now = 87 answer = num_chicken_before - num_chicken_now print(answer)

Question: Katty scored 2 goals on monday, 8 goals on tuesday and 9 goals on wednesday. How many did Katty score on monday and wednesday?

Python code, return answer

num_goals_on_monday = 2 num_goals_on_wednesday = 9 answer = num_goals_on_monday + num_goals_on_wednesday print(answer)

Question: There are 5 girls and 4 boys in the Masquerade, 12 more girls and 7 more boys joined. How many more girls than boys are in the Masquerade?

Python code, return answer

num_girls_before = 5 num_girls_joined = 12 num_boys_before = 4 num_boys_joined = 7 total_girls = num_girls_before + num_girls_joined total_boys = num_boys_before + num_boys_joined answer = total_girls - total_boys print(answer)

Question: Joseph and Getty went to buy ice creams, they together bought 36 ice creams. On the way back, Joseph ate 12 of the ice creasm, and he has 2 ice creams left now. How much ice creasm did Getty purchase?

Python code, return answer

num_ice_creams_bought_by_joseph = 2 + 12 total_ice_creams = 36 answer = total_ice_creams - num_ice_creams_bought_by_joseph print(answer)

Question: {Body} {Question}

How to Use

Use with LangChain: hub.pull("ariete/svamp_7shot")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076