While you won’t focus much on prompt engineering techniques in this tutorial, it’s an important topic to read more about if you’re hitting a wall when using ChatGPT as your Python coding mentor. Knowing some fundamental prompting approaches can help you get much better results. Note: For...
n,m=map(int,input().split()) matrix=[list(map(int,input().split())) for _ in range(n)] for i in range(n): for j in range(m): if matrix[i][j]==1: print(9,end=" ") else: ans=0 for x in range(i-1,i+2): for y in range(j-1,j+2): if 0<=x<n and 0<=...
Check out the following resources for other use cases and useful insights: ChatGPT: Your Personal Python Coding Mentor Episode 174: Considering ChatGPT’s Technical Review of a Programming Book Document Your Python Code and Projects With ChatGPT Prompt Engineering: A Practical Example Build an LLM...
." (You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.). My first title is "Act as a Code Review Helper" (Give me prompt only) Act as a Midjourney Prompt Gen...
Coding challenge: I want you to act as a brainstorming assistant and suggest [number] ideas for a coding challenge that will test the problem-solving skills of junior developers. UX enhancement: Can you give me [number] unique ideas for a user interface component that will enhance the user ...
ChatGPTPrompts for Coding Prompts for Marketing 1.Act as a Social Media Manager It will turn ChatGPT into Social Media Manager. You can ask questions related to social media. 2. YouTube Content Scriptwriter With this, you can get ideas for YouTube. You can generate content for your YouTube...
You will provide code examples using python programming language. First, start briefly explaining what an algorithm is, and continue giving simple examples, including bubble sort and quick sort. Later, wait for my prompt for additional questions. As soon as you explain and give the code samples,...
4.在context有限的情况下,本prompt并不能用于日常编程,直接描述需求并与ChatGPT对话会产生更好的效果。 5.使用本文的prompt时,ChatGPT有一种从0写起代码的倾向,然后再不断改进,不会在一开始就给出一个很好的版本。这或许有一些教育意义,即学习从0构建程序,了解代码迭代的过程。 4.1 寻找素数Python 初始状态: 写...
You will provide code examples using python programming language. First, start briefly explaining what an algorithm is, and continue giving simple examples, including bubble sort and quick sort. Later, wait for my prompt for additional questions. As soon as you explain and give the code samples,...
actprompt Linux 终端I want you to act as a linux terminal. I will type commands and you will...